From 69fe5eac2b0f2cd70a9a0dc957145bd7f1cb7159 Mon Sep 17 00:00:00 2001 From: missytake Date: Tue, 17 Dec 2024 17:43:22 +0100 Subject: [PATCH] DNS: more elegant solution to fix mta-sts record --- cmdeploy/src/cmdeploy/dns.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmdeploy/src/cmdeploy/dns.py b/cmdeploy/src/cmdeploy/dns.py index d3c541bb..a0606836 100644 --- a/cmdeploy/src/cmdeploy/dns.py +++ b/cmdeploy/src/cmdeploy/dns.py @@ -29,7 +29,7 @@ def check_initial_remote_data(remote_data, *, print=print): def get_filled_zone_file(remote_data): sts_id = remote_data.get("sts_id") if not sts_id: - sts_id = datetime.datetime.now().strftime("%Y%m%d%H%M") + remote_data["sts_id"] = datetime.datetime.now().strftime("%Y%m%d%H%M") template = importlib.resources.files(__package__).joinpath("chatmail.zone.j2") content = template.read_text()