cmdeploy re-add -y for pyinfra 3

This commit is contained in:
missytake
2024-07-25 16:28:18 +02:00
committed by holger krekel
parent 8e847093da
commit 4db953b22b

View File

@@ -67,7 +67,7 @@ def run_cmd(args, out):
env["CHATMAIL_INI"] = args.inipath
deploy_path = importlib.resources.files(__package__).joinpath("deploy.py").resolve()
pyinf = "pyinfra --dry" if args.dry_run else "pyinfra"
cmd = f"{pyinf} --ssh-user root {args.config.mail_domain} {deploy_path}"
cmd = f"{pyinf} --ssh-user root {args.config.mail_domain} {deploy_path} -y"
if version.parse(pyinfra.__version__) < version.parse("3"):
out.red("Please re-run scripts/initenv.sh to update pyinfra to version 3.")
return 1