Skip to content

Commit

Permalink
Merge pull request #1641 from oriAdler/OCM-4883
Browse files Browse the repository at this point in the history
Revert "OCM-4883 | fix: fetch passed arn in all roles"
  • Loading branch information
openshift-merge-bot[bot] committed Dec 4, 2023
2 parents 373e4c2 + 03e8303 commit b0d23be
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions cmd/create/operatorroles/by_prefix.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,12 @@ func handleOperatorRolesPrefixOptions(r *rosa.Runtime, cmd *cobra.Command) {
}
}
args.hostedCp = isHostedCP
if args.installerRoleArn == "" {
if args.hostedCp {
args.installerRoleArn = interactiveRoles.GetInstallerRoleArn(r, cmd, args.installerRoleArn, "",
r.AWSClient.FindRoleARNsHostedCp)
} else {
args.installerRoleArn = interactiveRoles.GetInstallerRoleArn(r, cmd, args.installerRoleArn, "",
r.AWSClient.FindRoleARNsClassic)
}
if args.hostedCp {
args.installerRoleArn = interactiveRoles.GetInstallerRoleArn(r, cmd, args.installerRoleArn, "",
r.AWSClient.FindRoleARNsHostedCp)
} else {
args.installerRoleArn = interactiveRoles.GetInstallerRoleArn(r, cmd, args.installerRoleArn, "",
r.AWSClient.FindRoleARNs)
r.AWSClient.FindRoleARNsClassic)
}
}

Expand Down

0 comments on commit b0d23be

Please sign in to comment.