Skip to content

Commit faa4bc0

Browse files
authored
save zip in parent dir (#451)
1 parent f8e3682 commit faa4bc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openshift_cli_installer/utils/general.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def inner(*args, **kwargs):
5858
def zip_and_upload_to_s3(install_dir, s3_bucket_name, s3_bucket_object_name):
5959
remove_terraform_folder_from_install_dir(install_dir=install_dir)
6060

61-
_base_name = os.path.join(install_dir, Path(s3_bucket_object_name).stem)
61+
_base_name = os.path.join(Path(install_dir).parent, Path(s3_bucket_object_name).stem)
6262
LOGGER.info(f"Writing data from {install_dir} to {_base_name} zip file")
6363
zip_file = shutil.make_archive(base_name=_base_name, format="zip", root_dir=install_dir)
6464

0 commit comments

Comments
 (0)