Commit a42f966d authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

slapos.cookbook: fix re6stManageToken after python3

The registry is sending bytes.

This is a fixup of 9f0b1c97.
parent c8178fa3
Pipeline #39437 failed with stage
in 0 seconds
......@@ -151,14 +151,14 @@ def checkService(client, token_base_path, token_json, computer_partition):
email = '%s@slapos' % slave_reference.lower()
if status == 'TOKEN_USED':
try:
ipv6 = client.getIPv6Address(str(email))
ipv6 = client.getIPv6Address(str(email)).decode()
except Exception:
log.info('Error for dump ipv6 for %s... \n %s' % (slave_reference,
traceback.format_exc()))
log.info("%s, IPV6 = %s" % (slave_reference, ipv6))
try:
ipv4 = client.getIPv4Information(str(email)) or "0.0.0.0"
ipv4 = client.getIPv4Information(str(email)).decode() or "0.0.0.0"
except Exception:
log.info('Error for dump ipv4 for %s... \n %s' % (slave_reference,
traceback.format_exc()))
......
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