Revision b5842eac kamaki/clients/astakos/__init__.py
b/kamaki/clients/astakos/__init__.py | ||
---|---|---|
54 | 54 |
""" |
55 | 55 |
self.token = token or self.token |
56 | 56 |
body = dict(auth=dict(token=dict(id=self.token))) |
57 |
self.set_headers('content-type', 'application/json') |
|
58 |
self._cache[self.token] = self.post('/tokens', data=body).json |
|
57 |
self._cache[self.token] = self.post('/tokens', json=body).json |
|
59 | 58 |
return self._cache[self.token] |
60 | 59 |
|
61 | 60 |
def get_services(self, token=None): |
Also available in: Unified diff