From 64863e1e6ea514994068d58fd69dcde1626b9e3a Mon Sep 17 00:00:00 2001 From: hkepley Date: Wed, 11 Sep 2024 11:27:02 -0400 Subject: [PATCH] OCM-11019 | fix: Fix issue with classic clusters without --oidc-config-id flag --- cmd/create/oidcprovider/cmd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/create/oidcprovider/cmd.go b/cmd/create/oidcprovider/cmd.go index 88e51d1c35..5517dc6c48 100644 --- a/cmd/create/oidcprovider/cmd.go +++ b/cmd/create/oidcprovider/cmd.go @@ -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)