mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-10-24 14:17:41 -05:00
Call directly function is_host_resolvable instead do call via framework
Reviewed-By: Petr Spacek <pspacek@redhat.com>
This commit is contained in:
1 parent
749dfc3917
commit
7acfaee8ab
1 file changed
+1
-3
@@ -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}
|
||||
|
||||
Reference in new issue
Block a user