diff options
author | Martin Basti <mbasti@redhat.com> | 2015-11-18 19:25:04 +0100 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2015-11-25 14:11:13 +0100 |
commit | 7acfaee8abc7f4dc7f09e975147b96944231db5b (patch) | |
tree | 44c56048a6934856d4dbb1346635facb181c4871 /ipalib | |
parent | 749dfc3917cd5b3d0f222d144e8fc96e08308e10 (diff) | |
download | freeipa-7acfaee8abc7f4dc7f09e975147b96944231db5b.tar.gz freeipa-7acfaee8abc7f4dc7f09e975147b96944231db5b.tar.xz freeipa-7acfaee8abc7f4dc7f09e975147b96944231db5b.zip |
Call directly function is_host_resolvable instead do call via framework
Reviewed-By: Petr Spacek <pspacek@redhat.com>
Diffstat (limited to 'ipalib')
-rw-r--r-- | ipalib/plugins/dns.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ipalib/plugins/dns.py b/ipalib/plugins/dns.py index 7bbb092c8..36e37ed5b 100644 --- a/ipalib/plugins/dns.py +++ b/ipalib/plugins/dns.py @@ -1563,9 +1563,7 @@ def check_ns_rec_resolvable(zone, name): elif not name.is_absolute(): # this is a DNS name relative to the zone name = name.derelativize(zone.make_absolute()) - try: - return api.Command['dns_resolve'](unicode(name)) - except errors.NotFound: + if not is_host_resolvable(name): raise errors.NotFound( reason=_('Nameserver \'%(host)s\' does not have a corresponding ' 'A/AAAA record') % {'host': name} |