diff options
author | Martin Basti <mbasti@redhat.com> | 2015-01-21 12:19:17 +0100 |
---|---|---|
committer | Jan Cholasta <jcholast@redhat.com> | 2015-01-23 09:26:55 +0000 |
commit | 46c12159e6c27082e7bc46e96d3738eea68dba91 (patch) | |
tree | e63a739ba22917db5bbf871be65c33d2f2b86e6c /ipapython | |
parent | 0758cf9de639808f570e190f513b7eff59b5e7ce (diff) | |
download | freeipa-46c12159e6c27082e7bc46e96d3738eea68dba91.tar.gz freeipa-46c12159e6c27082e7bc46e96d3738eea68dba91.tar.xz freeipa-46c12159e6c27082e7bc46e96d3738eea68dba91.zip |
DNSSEC: fix root zone dns name conversion
Root zone was represented as '@', which was incorrect. ksmutil did not
accept it.
Now root zone is represented as '.'
Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'ipapython')
-rw-r--r-- | ipapython/dnssec/odsmgr.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ipapython/dnssec/odsmgr.py b/ipapython/dnssec/odsmgr.py index a91b6c553..ed17351ca 100644 --- a/ipapython/dnssec/odsmgr.py +++ b/ipapython/dnssec/odsmgr.py @@ -145,6 +145,9 @@ class ODSMgr(object): def del_ods_zone(self, name): # ods-ksmutil blows up if zone name has period at the end name = name.relativize(dns.name.root) + # detect if name is root zone + if name == dns.name.empty: + name = dns.name.root cmd = ['zone', 'delete', '--zone', str(name)] output = self.ksmutil(cmd) self.log.info(output) |