Skip to content

Commit 5539575

Browse files
committed
fix(compute/deploy): use correct API method
1 parent a48ed82 commit 5539575

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/commands/compute/deploy.go

Lines changed: 3 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,14 +607,15 @@ 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
614614
}
615615
if !cont {
616616
return "", nil, fsterr.ErrComputeTrialStopped
617617
}
618+
text.Break(out)
618619
}
619620

620621
err = spinner.Start()

0 commit comments

Comments
 (0)