Skip to content

Commit 5806e1f

Browse files
committed
updated input to python scripts.
1 parent fe1c126 commit 5806e1f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

azure/common/deploy-stage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ stages:
278278
pip install json
279279
pip install boto3
280280
281-
python copy_spec.py "nhsd-apm-management-ptl-proxygen" "${{ parameters.service_name }} $(System.DefaultWorkingDirectory)"
281+
python copy_spec.py "nhsd-apm-management-ptl-proxygen" "${{ parameters.service_name }}" "$(System.DefaultWorkingDirectory)"
282282
displayName: Copy Spec
283283
284284
- ${{ if parameters.notify }}:

scripts/copy_spec.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def upload_to_s3(file_path: Path, bucket_name: str, folder_name: str):
4444
sys.exit(1)
4545

4646

47-
def main(bucket_name: str, repo_name: str):
47+
def main(bucket_name: str, repo_name: str, working_directory:str):
4848

4949
cwd = os.getcwd()
5050
print("Current working directory:", cwd)
@@ -71,6 +71,7 @@ def main(bucket_name: str, repo_name: str):
7171

7272
if __name__ == "__main__":
7373
print("Hitting main")
74+
7475
if len(sys.argv) != 4:
7576
print("Usage: python copy_spec_to_s3.py <s3_bucket_name> <repo_name> <Working Directory>")
7677
sys.exit(1)
@@ -82,4 +83,4 @@ def main(bucket_name: str, repo_name: str):
8283
print(f"Bucket name: {bucket_name}")
8384
print(f"Working Directory: {working_directory}")
8485

85-
sys.exit(main(bucket_name,repo_name))
86+
sys.exit(main(bucket_name,repo_name,working_directory))

0 commit comments

Comments
 (0)