Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 committed Sep 19, 2024
1 parent 25d45bf commit bc4823d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions builder/actions/setup_cross_ci_crt_environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,8 +430,8 @@ def _common_setup(self, env):
def get_sts_caller_identity(self):
try:
# Run AWS CLI command to get STS caller identity
result = subprocess.run(['aws', 'sts', 'get-caller-identity'], capture_output=True, text=True)

result = subprocess.run(['aws', 'sts', 'get-caller-identity'], stdout=subprocess.PIPE,
stderr=subprocess.PIPE, text=True)
# Check if the command was successful
if result.returncode == 0:
# Parse the JSON output
Expand All @@ -446,8 +446,8 @@ def get_sts_caller_identity(self):
def run(self, env):
# A special environment variable indicating that we want to dump test environment variables to a specified file.
env_dump_file = env.shell.getenv("AWS_SETUP_CRT_TEST_ENVIRONMENT_DUMP_FILE")
print(self.get_sts_caller_identity())
print(f"waahm7: {self.get_sts_caller_identity()}")

# Bail if not running tests
if not env.project.needs_tests(env) and not env_dump_file:
print('Tests not needed for project. Skipping setting test environment variables')
Expand Down

0 comments on commit bc4823d

Please sign in to comment.