Skip to content

Commit 87d9554

Browse files
committed
fix(compute/deploy): use correct API method
1 parent 7c7dcae commit 87d9554

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/commands/compute/deploy.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ func createService(g *global.Data, serviceName string, spinner text.Spinner, in
582582
data, err := undocumented.Call(undocumented.CallOptions{
583583
APIEndpoint: apiEndpoint,
584584
HTTPClient: g.HTTPClient,
585-
Method: http.MethodPost,
585+
Method: http.MethodGet,
586586
Path: fmt.Sprintf(undocumented.EntitledProductCheck, undocumented.ProductCompute),
587587
Token: token,
588588
Debug: debug,
@@ -607,7 +607,7 @@ func createService(g *global.Data, serviceName string, spinner text.Spinner, in
607607
}
608608

609609
if !epr.HasAccess {
610-
text.Info(out, "\n"+undocumented.EntitledProductMessageCompute+"\n\n")
610+
text.Info(out, undocumented.EntitledProductMessageCompute+"\n\n")
611611
cont, err := text.AskYesNo(out, "Are you sure you want to continue? [y/N]: ", in)
612612
if err != nil {
613613
return "", nil, err

0 commit comments

Comments
 (0)