fix(cmdeploy): check if dns_check_disabled before trying to warn about LE

If --skip-dns-check is used and retcode != 0, remote_data is undefined.
This commit is contained in:
j4n
2026-02-11 12:01:59 +01:00
parent 06560dd071
commit 87022e3681

View File

@@ -124,7 +124,7 @@ def run_cmd(args, out):
out.red("Website deployment failed.")
elif retcode == 0:
out.green("Deploy completed, call `cmdeploy dns` next.")
elif not remote_data["acme_account_url"]:
elif not args.dns_check_disabled and not remote_data["acme_account_url"]:
out.red("Deploy completed but letsencrypt not configured")
out.red("Run 'cmdeploy run' again")
retcode = 0