diff -r a776ac02b079 -r e598d1acf354 connectors/PYRO/__init__.py --- a/connectors/PYRO/__init__.py Fri Sep 22 18:06:15 2017 +0300 +++ b/connectors/PYRO/__init__.py Fri Sep 22 20:12:22 2017 +0300 @@ -84,13 +84,13 @@ schemename = "PYROLOC" if location.find(service_type) != -1: try: - from util.Zeroconf import Zeroconf + from zeroconf import Zeroconf r = Zeroconf() - i = r.getServiceInfo(service_type, location) + i = r.get_service_info(service_type, location) if i is None: raise Exception("'%s' not found" % location) - ip = str(socket.inet_ntoa(i.getAddress())) - port = str(i.getPort()) + ip = str(socket.inet_ntoa(i.address)) + port = str(i.port) newlocation = ip + ':' + port confnodesroot.logger.write(_("'{a1}' is located at {a2}\n").format(a1=location, a2=newlocation)) location = newlocation