Skip to content

Commit

Permalink
fixed errors
Browse files Browse the repository at this point in the history
  • Loading branch information
munishchouhan committed May 30, 2024
1 parent 54f6faf commit fb88e0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class CredentialServiceImpl implements CredentialsService {
}

CredentialsDescription findComputeCreds(PlatformId identity) {
final describeWorkflowLaunchResponse = towerClient.fetchWorkflowLaunchInfo(identity.towerEndpoint,identity.accessToken,identity.workflowId)
final describeWorkflowLaunchResponse = towerClient.fetchWorkflowLaunchInfo(identity.towerEndpoint, JwtAuth.of(identity), identity.workflowId)
if(describeWorkflowLaunchResponse) {
ComputeEnv computeEnv = describeWorkflowLaunchResponse.get()?.launch?.computeEnv
if (computeEnv && (computeEnv.platform == 'aws-batch' || computeEnv.platform == 'google-batch')) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ class TowerClient {
StringUtils.removeEnd(endpoint, "/")
}

CompletableFuture<DescribeWorkflowLaunchResponse> fetchWorkflowLaunchInfo(String towerEndpoint, String authorization, String workflowId){
CompletableFuture<DescribeWorkflowLaunchResponse> fetchWorkflowLaunchInfo(String towerEndpoint, JwtAuth authorization, String workflowId){
def uri = workflowLaunchInfoEndpoint(towerEndpoint,workflowId)
return getAsync(uri, towerEndpoint, authorization,DescribeWorkflowLaunchResponse.class)
return getAsync(uri, towerEndpoint, authorization, DescribeWorkflowLaunchResponse.class)
}
protected static URI workflowLaunchInfoEndpoint(String towerEndpoint, String workflowId) {
return URI.create("${checkEndpoint(towerEndpoint)}/workflow/${workflowId}/launch")
Expand Down

0 comments on commit fb88e0a

Please sign in to comment.