mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Non-existent RR returns empty string (#40680)
This commit is contained in:
parent
62c05033d6
commit
bd35069495
1 changed files with 2 additions and 0 deletions
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in a new issue