Skip to content

Commit

Permalink
OCM-10676 | fix: Assign cluster ID var in create/oidc_provider
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterkepley committed Aug 30, 2024
1 parent a3f69c8 commit 0b869f8
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 0b869f8

Please sign in to comment.