Skip to content

Commit

Permalink
Fix broken generate command #14
Browse files Browse the repository at this point in the history
  • Loading branch information
joelvdavies committed Oct 15, 2024
1 parent a12a824 commit ed50fd6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions scripts/dev_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,13 @@ def add_minio_alias_args(parser: argparse.ArgumentParser):

parser.add_argument("-mu", "--minio-username", default="root", help="Username for MinIO authentication")
parser.add_argument("-mp", "--minio-password", default="example_password", help="Password for MinIO authentication")
parser.add_argument("-mh", "--minio-host", default="http://locahost:9000", help="Host for MinIO")
parser.add_argument("-mh", "--minio-host", default="http://localhost:9000", help="Host for MinIO")


def set_minio_alias(args: argparse.Namespace):
"""Sets a MinIO alias named `object_storage` for use before MinIO commands using the parser arguments defined in
`add_minio_alias_args` above."""

print(args)
run_command(
[
"docker",
Expand All @@ -102,7 +101,7 @@ def set_minio_alias(args: argparse.Namespace):
"object-storage",
args.minio_host,
args.minio_username,
args.minio_host,
args.minio_password,
],
)

Expand Down
2 changes: 1 addition & 1 deletion scripts/generate_mock_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def create_attachment(attachment_data: dict) -> dict[str, Any]:
attachment = post("/attachments", attachment_data)
upload_info = attachment["upload_info"]
requests.post(
upload_info["url"].replace("minio", "localhost"),
upload_info["url"],
files={"file": fake.paragraph(nb_sentences=2)},
data=upload_info["fields"],
timeout=5,
Expand Down

0 comments on commit ed50fd6

Please sign in to comment.