Skip to content

Commit

Permalink
Fix zipping
Browse files Browse the repository at this point in the history
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
  • Loading branch information
Swiddis committed Apr 15, 2023
1 parent 1172560 commit 1ba5383
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/integrations-cli/integrations_cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ def package(name: str):
integration_path = os.path.join(os.getcwd(), "integrations", name)
artifact_path = os.path.join("artifacts", f"{name}.zip")
with zipfile.ZipFile(artifact_path, "w") as zf:
for _, dirnames, filenames in os.walk(integration_path):
for dirpath, dirnames, filenames in os.walk(integration_path):
for item in dirnames + filenames:
zf.write(os.path.join(integration_path, item), arcname=item)
zf.write(os.path.join(integration_path, dirpath, item), arcname=os.path.join(dirpath, item))
click.echo(colored(f"Packaged integration as '{artifact_path}'", "green"))


Expand Down

0 comments on commit 1ba5383

Please sign in to comment.