Fix ip in discovery

This commit is contained in:
Denis Zheleztsov 2016-11-16 15:34:57 +03:00
parent fa7427d993
commit 53e2152bc2
2 changed files with 2 additions and 3 deletions

View File

@ -9,7 +9,6 @@ services:
- docker
before_install:
- docker pull ubuntu:xenial
- cd build && ./build.sh surok_image
- ./build.sh alpine
- ./build.sh centos

View File

@ -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':