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