diff options
author | Itxaka <iserrano@redhat.com> | 2016-02-05 14:10:19 +0100 |
---|---|---|
committer | Itxaka <iserrano@redhat.com> | 2016-02-10 10:28:27 +0100 |
commit | 9b94d9b2f9c8d36de0d815d5101fc9139c3936bc (patch) | |
tree | 5db5a1d59332f53b9f34849e0b69d90404119fe3 | |
parent | 405f49bd72298fea44f95c1f6351e0daa02e8f2a (diff) | |
download | horizon-9b94d9b2f9c8d36de0d815d5101fc9139c3936bc.tar.gz |
api cinder volume_migrate wrong number of params
We were missing the lock_volume parameter, causing the call
to volume_migrate to always fail.
Change-Id: I8d2b5db9e2cb9551ac4bb47564b1f81c088d4ed3
Co-Authored-By: Dmitry Galkin
Closes-bug: #1533663
(cherry picked from commit 6a8c054097f87fe2ae5c4ee1886b84d4e4c561fb)
-rw-r--r-- | openstack_dashboard/api/cinder.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/openstack_dashboard/api/cinder.py b/openstack_dashboard/api/cinder.py index c7d58eec4..936604d24 100644 --- a/openstack_dashboard/api/cinder.py +++ b/openstack_dashboard/api/cinder.py @@ -293,10 +293,12 @@ def volume_get_encryption_metadata(request, volume_id): return cinderclient(request).volumes.get_encryption_metadata(volume_id) -def volume_migrate(request, volume_id, host, force_host_copy=False): +def volume_migrate(request, volume_id, host, force_host_copy=False, + lock_volume=False): return cinderclient(request).volumes.migrate_volume(volume_id, host, - force_host_copy) + force_host_copy, + lock_volume) def volume_snapshot_get(request, snapshot_id): |