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 - 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

View File

@ -59,8 +59,8 @@ 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':
error("Could not resolve " + fqdn) error("Could not resolve " + fqdn)