diff options
author | Leandro Alves <leandroalves@yahooinc.com> | 2021-11-24 18:17:35 +0100 |
---|---|---|
committer | Leandro Alves <leandroalves@yahooinc.com> | 2021-11-24 18:17:35 +0100 |
commit | 98d7e43c1d9a61f637c90becc4ec320e4a828a59 (patch) | |
tree | b0dabdb709b2d389695a2967b898b29830c7d3db /client/go/cmd | |
parent | 16c425e43a7c3bf70941d758ffcc87cdddaeb3c3 (diff) |
Fix spinner for the 'deploy' command
Diffstat (limited to 'client/go/cmd')
-rw-r--r-- | client/go/cmd/deploy.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/client/go/cmd/deploy.go b/client/go/cmd/deploy.go index 813abe88069..ae39afc3773 100644 --- a/client/go/cmd/deploy.go +++ b/client/go/cmd/deploy.go @@ -65,9 +65,7 @@ $ vespa deploy -t cloud -z perf.aws-us-east-1c`, target := getTarget() opts := getDeploymentOpts(cfg, pkg, target) - sessionOrRunID, err = vespa.Deploy(opts) - - if err == nil { + if sessionOrRunID, err := vespa.Deploy(opts); err == nil { fmt.Print("\n") if opts.IsCloud() { printSuccess("Triggered deployment of ", color.Cyan(pkg.Path), " with run ID ", color.Cyan(sessionOrRunID)) |