summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Harney <eharney@redhat.com>2016-04-21 11:38:17 -0400
committerEric Harney <eharney@redhat.com>2016-04-21 11:42:36 -0400
commit2f00cf8857974cbdd51e7d87642886da58032856 (patch)
treed7d23949b77e866c7e4610d5b0f9f9fcc7cc8356
parent8d79acda0f5ff0e33ece7c84e65f5168b9b465bf (diff)
downloadpython-cinderclient-2f00cf8857974cbdd51e7d87642886da58032856.tar.gz
Only print volume ID in migration messages
This displays the volume id rather than <Volume: id>. Change-Id: Iff4096a86d0fd403ee1b56d76ec78e879eee331b Closes-Bug: #1573094
-rw-r--r--cinderclient/v3/shell.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cinderclient/v3/shell.py b/cinderclient/v3/shell.py
index f28dedb..c838ca0 100644
--- a/cinderclient/v3/shell.py
+++ b/cinderclient/v3/shell.py
@@ -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)))