Skip to content

Commit

Permalink
Fixed the logic to set gcpMarketplaceEnabled true or keep it empty fo…
Browse files Browse the repository at this point in the history
…r other cases
  • Loading branch information
tirthct committed Sep 27, 2023
1 parent 7a9d2bd commit a8303bd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/ocm/create/cluster/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,10 @@ func preRun(cmd *cobra.Command, argv []string) error {
return err
}

gcpMarketplaceEnabled := strconv.FormatBool(isGcpMarketplaceSubscriptionType)
var gcpMarketplaceEnabled string
if isGcpMarketplaceSubscriptionType {
gcpMarketplaceEnabled = strconv.FormatBool(isGcpMarketplaceSubscriptionType)
}
versions, defaultVersion, err := getVersionOptionsWithDefault(connection, args.channelGroup,
&gcpMarketplaceEnabled)
if err != nil {
Expand Down

0 comments on commit a8303bd

Please sign in to comment.