fixup! fixup! refactor: app move review pass
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2025-09-01 07:48:16 +02:00
parent d7c57570a5
commit 51c1738ec9

View File

@ -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))