Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added Storage.containers

  • Loading branch information...
commit dcd0fe9458a42a9573b282902994f26e6b252205 1 parent cfbaad9
@brosner brosner authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 eldrax/storage.py
View
5 eldrax/storage.py
@@ -30,6 +30,11 @@ def __getitem__(self, name):
if not c.exists:
raise KeyError(name)
return c
+
+ def containers(self):
+ response = requests.get(**self._request_kwargs(""))
+ response.raise_for_status()
+ return [c for c in response.content.split("\n") if c]
class Container(object):
Please sign in to comment.
Something went wrong with that request. Please try again.