diff --git a/cli/app/move.go b/cli/app/move.go index fc6eb95b..00d8671a 100644 --- a/cli/app/move.go +++ b/cli/app/move.go @@ -95,7 +95,7 @@ Use "--dry-run/-r" to see which secrets and volumes will be moved.`), log.Fatal(i18n.G("bailing out: %s", err)) } - deployMeta, err := stack.IsDeployed(context.Background(), cl, app.StackName()) + deployMeta, err := stack.IsDeployed(context.Background(), currentServerClient, app.StackName()) if err != nil { log.Fatal(err) } @@ -123,7 +123,7 @@ Use "--dry-run/-r" to see which secrets and volumes will be moved.`), secretName := strings.Join(sname[:len(sname)-1], "_") data := resources.Secrets[secretName] if err := client.StoreSecret(newServerClient, s.Spec.Name, data); err != nil { - log.Fatal(i18.G("failed to store secret on %s: %s", err, newServer)) + log.Fatal(i18n.G("failed to store secret on %s: %s", err, newServer)) } log.Info(i18n.G("created secret on %s: %s", s.Spec.Name, newServer)) } @@ -155,7 +155,7 @@ Use "--dry-run/-r" to see which secrets and volumes will be moved.`), log.Debug(i18n.G("copying %s from %s to local machine", fileName, app.Server)) cmd = exec.Command("scp", fmt.Sprintf("%s:%s", app.Server, fileName), fileName) if out, err := cmd.CombinedOutput(); err != nil { - log.Fata(i18n.G("failed to copy %s from %s to local machine: output:%s err:%s", fileName, app.Server, string(out), err)) + log.Fatal(i18n.G("failed to copy %s from %s to local machine: output:%s err:%s", fileName, app.Server, string(out), err)) } log.Debug(i18n.G("copying %s to %s from local machine", fileName, newServer))