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
This commit is contained in:
Vincent Hou 2013-11-20 04:34:38 -05:00 committed by Avishay Traeger
parent 1aa375ae43
commit e64973f9a7
3 changed files with 3 additions and 2 deletions

View File

@ -80,7 +80,7 @@ class VolumeTypeManager(base.ManagerWithFind):
"""
resource_class = VolumeType
def list(self):
def list(self, search_opts=None):
"""
Get a list of all volume types.

View File

@ -70,7 +70,7 @@ class VolumeTypeManager(base.ManagerWithFind):
"""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`.

View File

@ -34,6 +34,7 @@ MASTER
.. _1254951: http://bugs.launchpad.net/python-cinderclient/+bug/1254951
.. _1254587: http://bugs.launchpad.net/python-cinderclient/+bug/1254587
.. _1253142: http://bugs.launchpad.net/python-cinderclient/+bug/1253142
.. _1252665: http://bugs.launchpad.net/python-cinderclient/+bug/1252665
1.0.7
-----