diff --git a/cmd/ocm/create/cluster/cmd.go b/cmd/ocm/create/cluster/cmd.go index a48f94ac..3e175d80 100644 --- a/cmd/ocm/create/cluster/cmd.go +++ b/cmd/ocm/create/cluster/cmd.go @@ -46,8 +46,9 @@ const ( defaultIngressExcludedNamespacesFlag = "default-ingress-excluded-namespaces" defaultIngressWildcardPolicyFlag = "default-ingress-wildcard-policy" defaultIngressNamespaceOwnershipPolicyFlag = "default-ingress-namespace-ownership-policy" - gcpTermsAgreementsHyperlink = "https://console.cloud.google.com/marketplace/agreements/redhat-marketplace/red-hat-openshift-dedicated" - gcpTermsAgreementError = "Please agree to Google Terms and Agreements in order to proceed" + gcpTermsAgreementsHyperlink = "https://console.cloud.google.com" + + "/marketplace/agreements/redhat-marketplace/red-hat-openshift-dedicated" + gcpTermsAgreementError = "Please agree to Google Terms and Agreements in order to proceed" ) var args struct { @@ -332,7 +333,8 @@ func init() { &args.marketplaceGcpTerms, "marketplace-gcp-terms", false, - fmt.Sprintf("Review and accept Google Terms and Agreements on %s. Set the flag to true once agreed in order to proceed further.", gcpTermsAgreementsHyperlink), + fmt.Sprintf("Review and accept Google Terms and Agreements on %s. "+ + "Set the flag to true once agreed in order to proceed further.", gcpTermsAgreementsHyperlink), ) arguments.SetQuestion(fs, "marketplace-gcp-terms", "I have agreed to Google Marketplace terms and conditions:") } @@ -689,7 +691,8 @@ func run(cmd *cobra.Command, argv []string) error { // If marketplace-gcp subscription type is used, flag marketplace-gcp-terms must be set to true. gcpBillingModel, _ := billing.GetBillingModel(connection, billing.MarketplaceGcpSubscriptionType) - gcpSubscriptionTypeTemplate := parseSubscriptionType(subscriptionTypeOption(gcpBillingModel.ID(), gcpBillingModel.Description()).Value) + gcpSubscriptionTypeTemplate := parseSubscriptionType(subscriptionTypeOption(gcpBillingModel.ID(), + gcpBillingModel.Description()).Value) isGcpMarketplaceSubscriptionType := args.subscriptionType == gcpSubscriptionTypeTemplate if isGcpMarketplaceSubscriptionType { if !args.marketplaceGcpTerms {