Commit f88f09fe authored by Ilias Tsitsimpis's avatar Ilias Tsitsimpis Committed by Christos Stavrakakis
Browse files

When authenticating check for uuid or uniq

This way we are compatible with synnefo-0.12
as well with synnefo-0.13.
parent bc3dfe00
......@@ -119,7 +119,11 @@ def _ssh_execute(hostip, username, password, command):
def _get_user_id():
"""Authenticate to astakos and get unique users id"""
astakos = AstakosClient(ASTAKOS, TOKEN)
return astakos.authenticate()['uuid']
authenticate = astakos.authenticate()
if 'uuid' in authenticate:
return authenticate['uuid']
return authenticate['uniq']
# --------------------------------------------------------------------
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