Merge "Fix Volume.extend and Volume.update_readonly_flag methods"
This commit is contained in:
commit
408994c855
@ -112,7 +112,7 @@ class Volume(base.Resource):
|
|||||||
:param volume: The UUID of the volume to extend.
|
:param volume: The UUID of the volume to extend.
|
||||||
:param new_size: The desired size to extend volume to.
|
: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):
|
def migrate_volume(self, host, force_host_copy):
|
||||||
"""Migrate the volume to a new host."""
|
"""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
|
:param read_only: The value to indicate whether to update volume to
|
||||||
read-only access mode.
|
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):
|
class VolumeManager(base.ManagerWithFind):
|
||||||
|
@ -111,7 +111,7 @@ class Volume(base.Resource):
|
|||||||
:param new_size: The desired size to extend volume to.
|
: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):
|
def migrate_volume(self, host, force_host_copy):
|
||||||
"""Migrate the volume to a new host."""
|
"""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
|
:param read_only: The value to indicate whether to update volume to
|
||||||
read-only access mode.
|
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):
|
class VolumeManager(base.ManagerWithFind):
|
||||||
|
Loading…
Reference in New Issue
Block a user