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