diff options
author | DR695H <dr695h@att.com> | 2019-05-01 18:52:33 -0400 |
---|---|---|
committer | DR695H <dr695h@att.com> | 2019-05-01 18:53:14 -0400 |
commit | ae6fedd18ad51f175d6a2e2346f284a68b6e4967 (patch) | |
tree | 40cf730e4178000533b83ebffdf6abe04011ce06 /robotframework-onap/eteutils/DNSUtils.py | |
parent | 308b44cc1e6b95df3051e5f7db94389696763cca (diff) |
support python 3
support python 3 in all files, also support python 2 however so
everything should continue to work
Change-Id: I4ace08d2bb0623c0fdc61f2fe39d2339817aa916
Issue-ID: TEST-141
Signed-off-by: DR695H <dr695h@att.com>
Diffstat (limited to 'robotframework-onap/eteutils/DNSUtils.py')
-rw-r--r-- | robotframework-onap/eteutils/DNSUtils.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/robotframework-onap/eteutils/DNSUtils.py b/robotframework-onap/eteutils/DNSUtils.py index 65ae68b..fd0cec3 100644 --- a/robotframework-onap/eteutils/DNSUtils.py +++ b/robotframework-onap/eteutils/DNSUtils.py @@ -7,11 +7,11 @@ class DNSUtils: def dns_request(self, domain, ns): """ return the ip address of the given domain name from the given nameserver """ - request = dns.message.make_query(domain, dns.rdatatype.A); - request.flags |= dns.flags.AD; + request = dns.message.make_query(domain, dns.rdatatype.A) + request.flags |= dns.flags.AD request.find_rrset(request.additional, dns.name.root, 65535, dns.rdatatype.OPT, create=True, force_unique=True) response = dns.query.udp(request, ns) for answer in response.answer: for item in answer.items: - return item
\ No newline at end of file + return item |