Skip to content

Commit

Permalink
subprocess command change
Browse files Browse the repository at this point in the history
  • Loading branch information
mukrishn authored Apr 5, 2024
1 parent 4182e48 commit 648ed4b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/platforms/rosa/hypershift/hypershift.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,8 +398,9 @@ def _wait_for_workers(

def _get_aws_account_id(self):
# Required by OCM-3187 (https://issues.redhat.com/browse/OCM-3187), remove when fixed
(acc_id_code, acc_id_out, acc_id_err) = self.utils.subprocess_exec("aws sts get-caller-identity --output json | jq -r '.Account'")
(acc_id_code, acc_id_out, acc_id_err) = self.utils.subprocess_exec("aws sts get-caller-identity --output json")
if acc_id_code == 0:
return acc_id['Account']
return acc_id_out
self.logging.error(f"Cannot find AWS Account information for the given credentials")
return None
Expand Down

0 comments on commit 648ed4b

Please sign in to comment.