Skip to content

Commit

Permalink
Fixed linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tirthct committed Oct 9, 2023
1 parent 4dcb78b commit 6aa1335
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions cmd/ocm/create/cluster/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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:")
}
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 6aa1335

Please sign in to comment.