1
0
Fork 0
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:
spike77453 2018-11-29 15:58:16 +01:00 committed by John R Barker
parent 62c05033d6
commit bd35069495

View file

@ -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))