Modified dns related global functions

* Modified functions to use DNSName type
* Removed unused functions

Part of ticket:
IPA should allow internationalized domain names
https://fedorahosted.org/freeipa/ticket/3169

Reviewed-By: Jan Cholasta <jcholast@redhat.com>
This commit is contained in:
Martin Basti
2014-05-16 12:21:04 +02:00
committed by Martin Kosek
parent e70f88c696
commit b964d2130a
4 changed files with 74 additions and 117 deletions

View File

@@ -35,7 +35,7 @@ from ipapython.ipa_log_manager import *
from ipapython.dn import DN
import ipalib
from ipalib import api, errors
from ipalib.util import (validate_zonemgr, normalize_zonemgr,
from ipalib.util import (validate_zonemgr_str, normalize_zonemgr,
get_dns_forward_zone_update_policy, get_dns_reverse_zone_update_policy,
normalize_zone, get_reverse_zone_default, zone_is_reverse)
from ipalib.constants import CACERT
@@ -383,7 +383,7 @@ def zonemgr_callback(option, opt_str, value, parser):
"""
# validate the value first
try:
validate_zonemgr(value)
validate_zonemgr_str(value)
except ValueError, e:
parser.error("invalid zonemgr: " + unicode(e))