Skip to content

Commit

Permalink
test: rm s3_auth_args()
Browse files Browse the repository at this point in the history
Function is no longer needed.  The credentials are taken from the
environment or from the local default profile if necessary.
  • Loading branch information
achilleas-k committed Jan 17, 2024
1 parent 99028d3 commit 9c78ff3
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions test/scripts/imgtestlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,6 @@ def list_images(distros=None, arches=None, images=None):
return json.loads(out)


def s3_auth_args():
s3_key = os.environ.get("AWS_SECRET_ACCESS_KEY")
s3_key_id = os.environ.get("AWS_ACCESS_KEY_ID")
if s3_key and s3_key_id:
return [f"--access_key={s3_key_id}", f"--secret_key={s3_key}"]

return []


def dl_s3_configs(destination):
"""
Downloads all the configs from the s3 bucket.
Expand Down

0 comments on commit 9c78ff3

Please sign in to comment.