File 0001-Cinder-override-all-method.patch of Package openstack-cinder
From 4ca41d07af2522e03a2581afe17196a8988bcd85 Mon Sep 17 00:00:00 2001
From: rossella <rsblendido@suse.com>
Date: Thu, 4 Sep 2014 13:44:33 +0000
Subject: [PATCH] Cinder override all() method
---
cinder/openstack/common/db/sqlalchemy/session.py | 4 ++++
1 file changed, 4 insertions(+)
Index: cinder-2014.1.4.dev2.g390259b/cinder/openstack/common/db/sqlalchemy/session.py
===================================================================
--- cinder-2014.1.4.dev2.g390259b.orig/cinder/openstack/common/db/sqlalchemy/session.py
+++ cinder-2014.1.4.dev2.g390259b/cinder/openstack/common/db/sqlalchemy/session.py
@@ -630,6 +630,10 @@ class Query(sqlalchemy.orm.query.Query):
'deleted_at': timeutils.utcnow()},
synchronize_session=synchronize_session)
+ @_wrap_db_error
+ def all(self):
+ return super(Query, self).all()
+
class Session(sqlalchemy.orm.session.Session):
"""Custom Session class to avoid SqlAlchemy Session monkey patching."""