summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-07-06 10:47:04 +0000
committerGerrit Code Review <review@openstack.org>2017-07-06 10:47:04 +0000
commit0fdd41d84ccfa16245d60617a4099e120f6100cf (patch)
tree432713d0867c92e3d433292d981b15e3ec664ddb
parent7dfbb239de0dd150a20835441b16ff61d3ed6edb (diff)
parentb681cfc88b445130c9e3c327b145b429dae39782 (diff)
downloadpython-cinderclient-0fdd41d84ccfa16245d60617a4099e120f6100cf.tar.gz
Merge "Fix output of update command"
-rw-r--r--cinderclient/v2/shell.py5
-rw-r--r--cinderclient/v3/shell.py2
2 files changed, 7 insertions, 0 deletions
diff --git a/cinderclient/v2/shell.py b/cinderclient/v2/shell.py
index 2c68d6d..c22116e 100644
--- a/cinderclient/v2/shell.py
+++ b/cinderclient/v2/shell.py
@@ -717,6 +717,8 @@ def do_snapshot_rename(cs, args):
raise exceptions.ClientException(code=1, message=msg)
shell_utils.find_volume_snapshot(cs, args.snapshot).update(**kwargs)
+ print("Request to rename snapshot '%s' has been accepted." % (
+ args.snapshot))
@utils.arg('snapshot', metavar='<snapshot>', nargs='+',
@@ -1397,6 +1399,7 @@ def do_backup_reset_state(cs, args):
for backup in args.backup:
try:
shell_utils.find_backup(cs, backup).reset_state(args.state)
+ print("Request to update backup '%s' has been accepted." % backup)
except Exception as e:
failure_count += 1
msg = "Reset state for backup %s failed: %s" % (backup, e)
@@ -2236,6 +2239,8 @@ def do_consisgroup_update(cs, args):
shell_utils.find_consistencygroup(
cs, args.consistencygroup).update(**kwargs)
+ print("Request to update consistency group '%s' has been accepted." % (
+ args.consistencygroup))
@utils.arg('--all-tenants',
diff --git a/cinderclient/v3/shell.py b/cinderclient/v3/shell.py
index 70b94da..8994906 100644
--- a/cinderclient/v3/shell.py
+++ b/cinderclient/v3/shell.py
@@ -849,6 +849,7 @@ def do_backup_update(cs, args):
raise exceptions.ClientException(code=1, message=msg)
shell_utils.find_backup(cs, args.backup).update(**kwargs)
+ print("Request to update backup '%s' has been accepted." % args.backup)
@api_versions.wraps('3.7')
@@ -1170,6 +1171,7 @@ def do_group_update(cs, args):
raise exceptions.ClientException(code=1, message=msg)
shell_utils.find_group(cs, args.group).update(**kwargs)
+ print("Request to update group '%s' has been accepted." % args.group)
@api_versions.wraps('3.14')