fix pyinfra run to account for new pyinfra release

This commit is contained in:
holger krekel
2024-07-15 14:22:21 +02:00
parent 79a9d2345b
commit 27eea671dc

View File

@@ -64,7 +64,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"
retcode = out.check_call(cmd, env=env)
if retcode == 0: