Commit 47f34c1e authored by Rafael Monnerat's avatar Rafael Monnerat

recipe/re6stnet: Follow up methods renames.

parent 1f3a3d90
......@@ -80,7 +80,7 @@ def requestAddToken(args, can_bang=True):
# email is unique as reference is also unique
email = '%s@slapos' % reference.lower()
try:
result = client.requestAddToken(email, token)
result = client.addToken(email, token)
except Exception:
log.info('Request add token fail for %s... \n %s' % (request_file,
traceback.format_exc()))
......@@ -115,7 +115,7 @@ def requestRemoveToken(args):
if token :
reference = reference_key.split('.')[0]
try:
result = client.requestDeleteToken(token)
result = client.deleteToken(token)
except httplib.NOTFOUND:
# Token is alread removed.
result = True
......@@ -181,7 +181,7 @@ def checkService(args, can_bang=True):
log.info("Token %s dont exist yet." % status_file)
continue
if not client.isValidToken(str(token)):
if not client.isToken(str(token)):
# Token is used to register client
call_bang = True
updateFile(status_file, 'TOKEN_USED')
......
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