mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-20 15:51:05 +00:00
Non-existent RR returns empty string (#40680)
This commit is contained in:
committed by
John R Barker
parent
62c05033d6
commit
bd35069495
@@ -84,6 +84,8 @@ class LookupModule(LookupBase):
|
||||
string = 'NXDOMAIN'
|
||||
except dns.resolver.Timeout:
|
||||
string = ''
|
||||
except dns.resolver.NoAnswer:
|
||||
string = ''
|
||||
except DNSException as e:
|
||||
raise AnsibleError("dns.resolver unhandled exception %s" % to_native(e))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user