Skip to content

Commit

Permalink
fix reading of the env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Matic Lubej committed Aug 5, 2024
1 parent d83b91e commit bac1d18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eogrow/core/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ def _prepare_sh_config(self) -> SHConfig:
will show a warning and return a config without AWS credentials."""
sh_config = SHConfig()

if self.is_on_s3() and os.environ["AWS_PROFILE"]:
sh_config = get_aws_credentials(aws_profile=os.environ["AWS_PROFILE"], config=sh_config)
if self.is_on_s3() and os.getenv("AWS_PROFILE"):
sh_config = get_aws_credentials(aws_profile=os.getenv("AWS_PROFILE"), config=sh_config)

return sh_config

Expand Down

0 comments on commit bac1d18

Please sign in to comment.