From 9578f6757293f2de2da5bd1c10e35266a999b94c Mon Sep 17 00:00:00 2001 From: Martin Kosek Date: Fri, 23 Mar 2012 16:26:54 +0100 Subject: [PATCH] Fix default SOA serial format RFC 1912 recommends format YYYYMMDDnn, we used YYYYDDMMnn. https://fedorahosted.org/freeipa/ticket/2567 --- ipalib/plugins/dns.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipalib/plugins/dns.py b/ipalib/plugins/dns.py index 96548099b..f47b180af 100644 --- a/ipalib/plugins/dns.py +++ b/ipalib/plugins/dns.py @@ -227,8 +227,8 @@ def _rname_validator(ugettext, zonemgr): return None def _create_zone_serial(**kwargs): - """Generate serial number for zones.""" - return int('%s01' % time.strftime('%Y%d%m')) + """ Generate serial number for zones. The format follows RFC 1912 """ + return int('%s01' % time.strftime('%Y%m%d')) def _reverse_zone_name(netstr): net = netaddr.IPNetwork(netstr)