Skip to content

Commit

Permalink
check AWS_PROFILE for guessing env name for local-check-execution
Browse files Browse the repository at this point in the history
  • Loading branch information
dmichaels-harvard committed Aug 22, 2024
1 parent cddfa02 commit d945751
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions foursight_core/scripts/local_check_execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,8 @@ def check_setup_has_queue_action(check_setup: dict, check_name: str) -> Tuple[bo


def guess_env() -> Optional[str]:
if aws_credentials_name := os.environ.get("AWS_PROFILE"):
return aws_credentials_name
aws_test_dir_name = ".aws_test"
aws_test_dir_prefix = f"{aws_test_dir_name}."
aws_test_dir = os.path.expanduser(f"~/{aws_test_dir_name}")
Expand Down

0 comments on commit d945751

Please sign in to comment.