Skip to content

Commit

Permalink
DNS: more elegant solution to fix mta-sts record
Browse files Browse the repository at this point in the history
  • Loading branch information
missytake committed Dec 17, 2024
1 parent 46f6a07 commit 69fe5ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmdeploy/src/cmdeploy/dns.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 69fe5ea

Please sign in to comment.