Skip to content

Commit

Permalink
Merge pull request #304 from terrateamio/pro-555-fix-aws-sts-error-fo…
Browse files Browse the repository at this point in the history
…r-real

PRO-555 FIX Log AWS STS error but the correct one this time
  • Loading branch information
orbitz authored Sep 13, 2024
2 parents e9f7750 + d9d5597 commit e3919c9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions terrat_runner/workflow_step_oidc.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,13 @@ def assume_role_with_web_identity(state, config, web_identity_token):
workflow_step={'type': 'oidc'},
outputs=None)
else:
logging.error('OIDC : %s : ERROR', role_arn)
output = proc.stdout.decode('utf-8') + '\n' + proc.stderr.decode('utf-8')
logging.error('OIDC : %s : ERROR : %s', role_arn, output)
return workflow.Result(failed=True,
state=state,
workflow_step={'type': 'oidc'},
outputs={
'text': proc.stderr.decode('utf-8')
'text': output
})


Expand Down

0 comments on commit e3919c9

Please sign in to comment.