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,8 +59,8 @@ 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)
|
||||
servers.append(server)
|
||||
server['ip'].append(a_rdata.address)
|
||||
servers.append(server)
|
||||
except DNSException as e:
|
||||
if loglevel != 'info':
|
||||
error("Could not resolve " + fqdn)
|
||||
|
Loading…
Reference in New Issue
Block a user