UNCLASSIFIED

Commit 3a0266c4 authored by David Freeman's avatar David Freeman
Browse files

log S3 repo_map download response code

parent feeb0f64
Pipeline #99184 passed with stages
in 2 minutes and 57 seconds
#!/usr/bin/python3
#!/usr/bin/env python3
import sys
import json
import os
......@@ -26,6 +26,7 @@ def get_repomap(object_name, bucket="ironbank-pipeline-artifacts"):
print(object_name)
try:
response = s3_client.download_file(bucket, object_name, "repo_map.json")
logging.debug(f"Repo Map download response: {response}")
except ClientError as e:
logging.error(e)
print("Existing repo_map.json not found, creating new repo_map.json")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment