Skip to content

Commit

Permalink
Merge pull request #2449 from openshift-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…2447-to-release_1.2.45

[release_1.2.45] OCM-11019 | fix: Fix issue with classic clusters without --oidc-config-id flag
  • Loading branch information
davidleerh authored Sep 11, 2024
2 parents be61f77 + 64863e1 commit cc664c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/create/oidcprovider/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ func run(cmd *cobra.Command, argv []string) {

func createProvider(r *rosa.Runtime, oidcEndpointUrl string, clusterId string, isProgrammaticallyCalled bool) error {
inputBuilder := cmv1.NewOidcThumbprintInput()
if isProgrammaticallyCalled || clusterId == "" {
if (isProgrammaticallyCalled || clusterId == "") && args.oidcConfigId != "" {
inputBuilder.OidcConfigId(args.oidcConfigId)
} else {
inputBuilder.ClusterId(clusterId)
Expand Down

0 comments on commit cc664c3

Please sign in to comment.