Commit c9fae85c authored by Rafael Monnerat's avatar Rafael Monnerat

recipe/re6stnet: getIPv4Information was simplifed on registry.

parent 47f34c1e
......@@ -206,13 +206,7 @@ def checkService(args, can_bang=True):
log.info("%s, IPV6 = %s" % (slave_reference, ipv6))
log.info("Dumping ipv4...")
try:
ipv4 = "0.0.0.0"
ipv6_prefix = client.getIPv6Prefix(str(email))
if not int(ipv6_prefix) == 0:
if client.isPeer(ipv6_prefix):
ipv4 = client.getIPv4Information(ipv6_prefix)
log.info("Found ipv4: %s" % ipv4)
ipv4 = client.getIPv4Information(str(email)) or "0.0.0.0"
ipv4_file = os.path.join(base_token_path, '%s.ipv4' % slave_reference)
ipv4_changed = updateFile(ipv4_file, ipv4)
except Exception:
......@@ -220,7 +214,7 @@ def checkService(args, can_bang=True):
traceback.format_exc()))
continue
log.info("%s, IPV4 = %s, IPV6_PREFIX = %s" % (slave_reference, ipv4, ipv6_prefix))
log.info("%s, IPV4 = %s" % (slave_reference, ipv4))
except IOError:
log.debug('Error when writing in file %s. Could not update status of %s...' %
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment