File 0001-Add-search_opts-into-the-method-list-for-VolumeTypeM.patch of Package python-cinderclient

From e64973f9a70fba10b25645c74454fc3d744568bf Mon Sep 17 00:00:00 2001
From: Vincent Hou <sbhou@cn.ibm.com>
Date: Wed, 20 Nov 2013 04:34:38 -0500
Subject: [PATCH] Add search_opts into the method list() for VolumeTypeManager

Since the method base.ManagerWithFind.findall has been modified by
adding the search_opts for all tenants support, the parameter
search_opts should also be added to all the manager classes, which
can be called whithin this method. volumetypemanager does not have
this parameter for its method list(). Adding search_opts will resolve
this issue.

Closes-Bug: #1252665

Change-Id: I526500625f1b5483cb5d88ea15e6ac8485a66ae3
---
 cinderclient/v1/volume_types.py | 2 +-
 cinderclient/v2/volume_types.py | 2 +-
 doc/source/index.rst            | 1 +
 3 files changed, 3 insertions(+), 2 deletions(-)

Index: python-cinderclient-1.0.7/cinderclient/v1/volume_types.py
===================================================================
--- python-cinderclient-1.0.7.orig/cinderclient/v1/volume_types.py
+++ python-cinderclient-1.0.7/cinderclient/v1/volume_types.py
@@ -80,7 +80,7 @@ class VolumeTypeManager(base.ManagerWith
     """
     resource_class = VolumeType
 
-    def list(self):
+    def list(self, search_opts=None):
         """
         Get a list of all volume types.
 
Index: python-cinderclient-1.0.7/cinderclient/v2/volume_types.py
===================================================================
--- python-cinderclient-1.0.7.orig/cinderclient/v2/volume_types.py
+++ python-cinderclient-1.0.7/cinderclient/v2/volume_types.py
@@ -70,7 +70,7 @@ class VolumeTypeManager(base.ManagerWith
     """Manage :class:`VolumeType` resources."""
     resource_class = VolumeType
 
-    def list(self):
+    def list(self, search_opts=None):
         """Get a list of all volume types.
 
         :rtype: list of :class:`VolumeType`.
openSUSE Build Service is sponsored by