Skip to content

Commit

Permalink
Fix support for env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-z committed Dec 6, 2024
1 parent a674827 commit 47fab52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ def __init__(self, bucket_config, repo_config, workspace_dir: str):
name: boto3.resource(
"s3",
endpoint_url=config["endpoint_url"],
aws_access_key_id=config["access_key_id"] or os.environ[config["access_key_id_env_var"]],
aws_secret_access_key=config["secret_key"] or os.environ[config["secret_key_env_var"]],
aws_access_key_id=config.get("access_key_id") or os.environ[config["access_key_id_env_var"]],
aws_secret_access_key=config.get("secret_key") or os.environ[config["secret_key_env_var"]],
).Bucket(config["bucket_name"])
for name, config in bucket_config.items()
}
Expand Down

0 comments on commit 47fab52

Please sign in to comment.