diff --git a/cinderclient/v1/volumes.py b/cinderclient/v1/volumes.py index 4c8ee3b0a..d6c50b77c 100644 --- a/cinderclient/v1/volumes.py +++ b/cinderclient/v1/volumes.py @@ -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): diff --git a/cinderclient/v2/volumes.py b/cinderclient/v2/volumes.py index bfe6670b1..e76abbdba 100644 --- a/cinderclient/v2/volumes.py +++ b/cinderclient/v2/volumes.py @@ -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):