Skip to content

Commit 2e94e9a

Browse files
authored
Non-existent RR returns empty string
1 parent d9533c3 commit 2e94e9a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/ansible/plugins/lookup/dnstxt.py

+2
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ def run(self, terms, variables=None, **kwargs):
8484
string = 'NXDOMAIN'
8585
except dns.resolver.Timeout:
8686
string = ''
87+
except dns.resolver.NoAnswer:
88+
string = ''
8789
except DNSException as e:
8890
raise AnsibleError("dns.resolver unhandled exception %s" % to_native(e))
8991

0 commit comments

Comments
 (0)