summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Kosek <mkosek@redhat.com>2012-03-23 16:26:54 +0100
committerMartin Kosek <mkosek@redhat.com>2012-03-23 16:55:12 +0100
commit9578f6757293f2de2da5bd1c10e35266a999b94c (patch)
treeb3bb91922ab3db2046084c3c41d93ae688a6bf72
parent11ef6708350c5575a77f0b1298107d3715e96ff8 (diff)
downloadfreeipa-9578f6757293f2de2da5bd1c10e35266a999b94c.tar.gz
freeipa-9578f6757293f2de2da5bd1c10e35266a999b94c.tar.xz
freeipa-9578f6757293f2de2da5bd1c10e35266a999b94c.zip
Fix default SOA serial format
RFC 1912 recommends format YYYYMMDDnn, we used YYYYDDMMnn. https://fedorahosted.org/freeipa/ticket/2567
-rw-r--r--ipalib/plugins/dns.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipalib/plugins/dns.py b/ipalib/plugins/dns.py
index 96548099..f47b180a 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)