Skip to content

Commit

Permalink
OCM-11019 | fix: Fix issue with classic clusters without --oidc-confi…
Browse files Browse the repository at this point in the history
…g-id flag
  • Loading branch information
hunterkepley authored and openshift-cherrypick-robot committed Sep 11, 2024
1 parent be61f77 commit 64863e1
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 64863e1

Please sign in to comment.