Skip to content

Commit

Permalink
OCM-11019 | fix: Fix create/provider when cluster name provided
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterkepley committed Sep 12, 2024
1 parent fcd973f commit fae3ea6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/create/oidcprovider/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ func run(cmd *cobra.Command, argv []string) {
if !confirm.Prompt(true, confirmPromptMessage) {
os.Exit(0)
}
if clusterId == "" {
clusterId = cmd.Flag("cluster").Value.String()
if clusterId == "" && clusterKey != "" {
clusterId = r.FetchCluster().ID()
}
err = createProvider(r, oidcEndpointURL, clusterId, isProgrammaticallyCalled)
if err != nil {
Expand Down

0 comments on commit fae3ea6

Please sign in to comment.