Revision 8614814c kamaki/clients/astakos.py
b/kamaki/clients/astakos.py | ||
---|---|---|
36 | 36 |
|
37 | 37 |
class AstakosClient(Client): |
38 | 38 |
"""GRNet Astakos API client""" |
39 |
|
|
39 |
|
|
40 | 40 |
def raise_for_status(self, r): |
41 | 41 |
msg = r.text.strip() |
42 | 42 |
if msg: |
... | ... | |
44 | 44 |
else: |
45 | 45 |
# Fallback to the default |
46 | 46 |
super(AstakosClient, self).raise_for_status(r) |
47 |
|
|
47 |
|
|
48 | 48 |
def authenticate(self): |
49 | 49 |
r = self.get('/im/authenticate') |
50 | 50 |
return r.json |
Also available in: Unified diff