Fix ip in discovery
This commit is contained in:
parent
fa7427d993
commit
53e2152bc2
@ -9,7 +9,6 @@ services:
|
||||
- docker
|
||||
|
||||
before_install:
|
||||
- docker pull ubuntu:xenial
|
||||
- cd build && ./build.sh surok_image
|
||||
- ./build.sh alpine
|
||||
- ./build.sh centos
|
||||
|
@ -59,7 +59,7 @@ def do_query(fqdn, loglevel):
|
||||
server = {'name': name, 'port': port, 'ip': []}
|
||||
a_query = resolver.query(name, 'A')
|
||||
for a_rdata in a_query:
|
||||
server['ip'].append(a_rdata)
|
||||
server['ip'].append(a_rdata.address)
|
||||
servers.append(server)
|
||||
except DNSException as e:
|
||||
if loglevel != 'info':
|
||||
|
Loading…
Reference in New Issue
Block a user