diff options
author | Martin Kosek <mkosek@redhat.com> | 2012-03-23 16:26:54 +0100 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2012-03-23 16:55:20 +0100 |
commit | 5fce48d35989ad0f34c20f0e7b19b4e0fa3e91b7 (patch) | |
tree | 7945a7bf9ec045892741590e315f9b365b0a6bdf /ipalib | |
parent | b6e6092f5c6b29dce6a2295addb0aeea51cbea23 (diff) | |
download | freeipa.git-5fce48d35989ad0f34c20f0e7b19b4e0fa3e91b7.tar.gz freeipa.git-5fce48d35989ad0f34c20f0e7b19b4e0fa3e91b7.tar.xz freeipa.git-5fce48d35989ad0f34c20f0e7b19b4e0fa3e91b7.zip |
Fix default SOA serial format
RFC 1912 recommends format YYYYMMDDnn, we used YYYYDDMMnn.
https://fedorahosted.org/freeipa/ticket/2567
Diffstat (limited to 'ipalib')
-rw-r--r-- | ipalib/plugins/dns.py | 4 |
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) |