Revision 144b3551 kamaki/cli/commands/astakos.py
b/kamaki/cli/commands/astakos.py | ||
---|---|---|
53 | 53 |
base_url = self._custom_url('astakos') |
54 | 54 |
if base_url: |
55 | 55 |
token = self._custom_token('astakos')\ |
56 |
or self.config.get_remote(self.cloud, 'token')
|
|
56 |
or self.config.get_cloud(self.cloud, 'token')
|
|
57 | 57 |
self.client = AstakosClient(base_url=base_url, token=token) |
58 | 58 |
return |
59 | 59 |
else: |
... | ... | |
72 | 72 |
"""Authenticate a user |
73 | 73 |
Get user information (e.g. unique account name) from token |
74 | 74 |
Token should be set in settings: |
75 |
* check if a token is set /config get remote.default.token
|
|
76 |
* permanently set a token /config set remote.default.token <token>
|
|
75 |
* check if a token is set /config get cloud.default.token
|
|
76 |
* permanently set a token /config set cloud.default.token <token>
|
|
77 | 77 |
Token can also be provided as a parameter |
78 |
(In case of another named cloud remote, use its name instead of default)
|
|
78 |
(In case of another named cloud, use its name instead of default) |
|
79 | 79 |
""" |
80 | 80 |
|
81 | 81 |
@staticmethod |
Also available in: Unified diff