Skip to content

Commit

Permalink
Merge pull request #2407 from hunterkepley/ocm-10676-2
Browse files Browse the repository at this point in the history
OCM-10676 | fix: Assign cluster ID var in create/oidc_provider
  • Loading branch information
openshift-merge-bot[bot] authored Sep 2, 2024
2 parents 4512bea + 0b869f8 commit 625e45d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/create/oidcprovider/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ func run(cmd *cobra.Command, argv []string) {
if !confirm.Prompt(true, confirmPromptMessage) {
os.Exit(0)
}
if clusterId == "" {
clusterId = cmd.Flag("cluster").Value.String()
}
err = createProvider(r, oidcEndpointURL, clusterId)
if err != nil {
r.Reporter.Errorf("There was an error creating the OIDC provider: %s", err)
Expand Down

0 comments on commit 625e45d

Please sign in to comment.