Fix Volume.extend and Volume.update_readonly_flag methods

Correct VolumeManager method signature called from Volume.extend and
Volume.update_readonly_flag methods for v1 and v2 api's.

Change-Id: I2ffb49112d39ad96b91a4173526502a5201666c6
Closes-Bug: #1293423
Closes-Bug: #1294178
This commit is contained in:
yrunts 2014-03-17 12:46:11 +02:00
parent e8e785f016
commit d3236f568e
2 changed files with 4 additions and 4 deletions

View File

@ -112,7 +112,7 @@ class Volume(base.Resource):
:param volume: The UUID of the volume to extend.
:param new_size: The desired size to extend volume to.
"""
self.manager.extend(self, volume, new_size)
self.manager.extend(self, new_size)
def migrate_volume(self, host, force_host_copy):
"""Migrate the volume to a new host."""
@ -134,7 +134,7 @@ class Volume(base.Resource):
:param read_only: The value to indicate whether to update volume to
read-only access mode.
"""
self.manager.update_readonly_flag(self, volume, read_only)
self.manager.update_readonly_flag(self, read_only)
class VolumeManager(base.ManagerWithFind):

View File

@ -111,7 +111,7 @@ class Volume(base.Resource):
:param new_size: The desired size to extend volume to.
"""
self.manager.extend(self, volume, new_size)
self.manager.extend(self, new_size)
def migrate_volume(self, host, force_host_copy):
"""Migrate the volume to a new host."""
@ -132,7 +132,7 @@ class Volume(base.Resource):
:param read_only: The value to indicate whether to update volume to
read-only access mode.
"""
self.manager.update_readonly_flag(self, volume, read_only)
self.manager.update_readonly_flag(self, read_only)
class VolumeManager(base.ManagerWithFind):