projects
/
kamaki
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d83a283
)
Add status_code in Container already exists exception
author
Giorgos Verigakis
<verigak@gmail.com>
Thu, 19 Apr 2012 11:37:13 +0000
(14:37 +0300)
committer
Giorgos Verigakis
<verigak@gmail.com>
Thu, 19 Apr 2012 11:37:13 +0000
(14:37 +0300)
kamaki/clients/storage.py
patch
|
blob
|
history
diff --git
a/kamaki/clients/storage.py
b/kamaki/clients/storage.py
index
ce53cd2
..
7dad66e
100644
(file)
--- a/
kamaki/clients/storage.py
+++ b/
kamaki/clients/storage.py
@@
-56,7
+56,7
@@
class StorageClient(Client):
path = '/%s/%s' % (self.account, container)
r = self.put(path, success=(201, 202))
if r.status_code == 202:
- raise ClientError("Container already exists")
+ raise ClientError("Container already exists", r.status_code)
def get_container_meta(self, container):
self.assert_account()