Revision 965b25af
b/snf-tools/synnefo_tools/burnin.py | ||
---|---|---|
119 | 119 |
def _get_user_id(): |
120 | 120 |
"""Authenticate to astakos and get unique users id""" |
121 | 121 |
astakos = AstakosClient(ASTAKOS, TOKEN) |
122 |
return astakos.authenticate()['uuid'] |
|
122 |
authenticate = astakos.authenticate() |
|
123 |
if 'uuid' in authenticate: |
|
124 |
return authenticate['uuid'] |
|
125 |
else: |
|
126 |
return authenticate['uniq'] |
|
123 | 127 |
|
124 | 128 |
|
125 | 129 |
# -------------------------------------------------------------------- |
Also available in: Unified diff