Non-existent RR returns empty string (#40680)

pull/49308/head
spike77453 6 years ago committed by John R Barker
parent 62c05033d6
commit bd35069495

@ -84,6 +84,8 @@ class LookupModule(LookupBase):
string = 'NXDOMAIN' string = 'NXDOMAIN'
except dns.resolver.Timeout: except dns.resolver.Timeout:
string = '' string = ''
except dns.resolver.NoAnswer:
string = ''
except DNSException as e: except DNSException as e:
raise AnsibleError("dns.resolver unhandled exception %s" % to_native(e)) raise AnsibleError("dns.resolver unhandled exception %s" % to_native(e))

Loading…
Cancel
Save