From 53e2152bc275eaeb689e425f41f531b2b1dab9e2 Mon Sep 17 00:00:00 2001 From: Denis Zheleztsov Date: Wed, 16 Nov 2016 15:34:57 +0300 Subject: [PATCH] Fix ip in discovery --- .travis.yml | 1 - surok/discovery.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 56a7002..574f75b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,6 @@ services: - docker before_install: - - docker pull ubuntu:xenial - cd build && ./build.sh surok_image - ./build.sh alpine - ./build.sh centos diff --git a/surok/discovery.py b/surok/discovery.py index a960dcc..0e7b747 100644 --- a/surok/discovery.py +++ b/surok/discovery.py @@ -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)