Skip to content

Commit

Permalink
Prevent hard error when launch credentials cannot be accessed
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Di Tommaso <[email protected]>
  • Loading branch information
pditommaso committed Jul 16, 2024
1 parent 0f17ca8 commit a318a85
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,16 @@ class CredentialServiceImpl implements CredentialsService {
}

CredentialsDescription findComputeCreds(PlatformId identity) {
try {
return findComputeCreds0(identity)
}
catch (Exception e) {
log.error("Unable to retrieve Platform launch credentials for $identity - cause ${e.message}")
return null
}
}

protected CredentialsDescription findComputeCreds0(PlatformId identity) {
final response = towerClient.describeWorkflowLaunch(identity.towerEndpoint, JwtAuth.of(identity), identity.workflowId)
if( !response )
return null
Expand Down

0 comments on commit a318a85

Please sign in to comment.