projects
/
pithos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e9c8fc
)
Hotfix pithos 500 error
author
Stratos Psomadakis
<psomas@grnet.gr>
Tue, 16 Oct 2012 12:44:35 +0000
(15:44 +0300)
committer
Stratos Psomadakis
<psomas@grnet.gr>
Tue, 16 Oct 2012 12:44:35 +0000
(15:44 +0300)
Temporary fix to prevent pithos failing with "AttributeError:
'ModularBackend' object has no attribute 'messages'" 500 error.
snf-pithos-app/pithos/api/util.py
patch
|
blob
|
history
diff --git
a/snf-pithos-app/pithos/api/util.py
b/snf-pithos-app/pithos/api/util.py
index
5b15c6c
..
197156b
100644
(file)
--- a/
snf-pithos-app/pithos/api/util.py
+++ b/
snf-pithos-app/pithos/api/util.py
@@
-807,6
+807,7
@@
def get_backend():
backend = _pithos_backend_pool.pool_get()
backend.default_policy['quota'] = BACKEND_QUOTA
backend.default_policy['versioning'] = BACKEND_VERSIONING
+ backend.messages = []
return backend