mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Call directly function is_host_resolvable instead do call via framework
Reviewed-By: Petr Spacek <pspacek@redhat.com>
This commit is contained in:
parent
749dfc3917
commit
7acfaee8ab
@ -1563,9 +1563,7 @@ def check_ns_rec_resolvable(zone, name):
|
|||||||
elif not name.is_absolute():
|
elif not name.is_absolute():
|
||||||
# this is a DNS name relative to the zone
|
# this is a DNS name relative to the zone
|
||||||
name = name.derelativize(zone.make_absolute())
|
name = name.derelativize(zone.make_absolute())
|
||||||
try:
|
if not is_host_resolvable(name):
|
||||||
return api.Command['dns_resolve'](unicode(name))
|
|
||||||
except errors.NotFound:
|
|
||||||
raise errors.NotFound(
|
raise errors.NotFound(
|
||||||
reason=_('Nameserver \'%(host)s\' does not have a corresponding '
|
reason=_('Nameserver \'%(host)s\' does not have a corresponding '
|
||||||
'A/AAAA record') % {'host': name}
|
'A/AAAA record') % {'host': name}
|
||||||
|
Loading…
Reference in New Issue
Block a user