Only print volume ID in migration messages
This displays the volume id rather than <Volume: id>. Change-Id: Iff4096a86d0fd403ee1b56d76ec78e879eee331b Closes-Bug: #1573094
This commit is contained in:
parent
8d79acda0f
commit
2f00cf8857
@ -1299,9 +1299,9 @@ def do_migrate(cs, args):
|
||||
try:
|
||||
volume.migrate_volume(args.host, args.force_host_copy,
|
||||
args.lock_volume)
|
||||
print("Request to migrate volume %s has been accepted." % (volume))
|
||||
print("Request to migrate volume %s has been accepted." % (volume.id))
|
||||
except Exception as e:
|
||||
print("Migration for volume %s failed: %s." % (volume,
|
||||
print("Migration for volume %s failed: %s." % (volume.id,
|
||||
six.text_type(e)))
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user