From 87d955432e0a849b8f56bf006f91f16c2d132e77 Mon Sep 17 00:00:00 2001 From: Integralist Date: Thu, 18 Apr 2024 10:16:38 +0100 Subject: [PATCH] fix(compute/deploy): use correct API method --- pkg/commands/compute/deploy.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/commands/compute/deploy.go b/pkg/commands/compute/deploy.go index dc00f7fdd..d848b3433 100644 --- a/pkg/commands/compute/deploy.go +++ b/pkg/commands/compute/deploy.go @@ -582,7 +582,7 @@ func createService(g *global.Data, serviceName string, spinner text.Spinner, in data, err := undocumented.Call(undocumented.CallOptions{ APIEndpoint: apiEndpoint, HTTPClient: g.HTTPClient, - Method: http.MethodPost, + Method: http.MethodGet, Path: fmt.Sprintf(undocumented.EntitledProductCheck, undocumented.ProductCompute), Token: token, Debug: debug, @@ -607,7 +607,7 @@ func createService(g *global.Data, serviceName string, spinner text.Spinner, in } if !epr.HasAccess { - text.Info(out, "\n"+undocumented.EntitledProductMessageCompute+"\n\n") + text.Info(out, undocumented.EntitledProductMessageCompute+"\n\n") cont, err := text.AskYesNo(out, "Are you sure you want to continue? [y/N]: ", in) if err != nil { return "", nil, err