Use v2 endpoint with v2 shell for migration

Change the volume migration shell to use the v2 endpoint for v2.

Change-Id: I0a902aa5e3f86c0d9562eb75677b11a364f9d371
Closes-Bug: #1230124
This commit is contained in:
Avishay Traeger
2013-09-25 10:30:17 +03:00
parent 37b57ea0de
commit 327b397f63

View File

@@ -809,7 +809,7 @@ def do_upload_to_image(cs, args):
'host-based migration mechanism, bypassing driver '
'optimizations (Default=False).',
default=False)
@utils.service_type('volume')
@utils.service_type('volumev2')
def do_migrate(cs, args):
"""Migrate the volume to the new host."""
volume = _find_volume(cs, args.volume)