diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-07-06 10:47:04 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-07-06 10:47:04 +0000 |
commit | 0fdd41d84ccfa16245d60617a4099e120f6100cf (patch) | |
tree | 432713d0867c92e3d433292d981b15e3ec664ddb | |
parent | 7dfbb239de0dd150a20835441b16ff61d3ed6edb (diff) | |
parent | b681cfc88b445130c9e3c327b145b429dae39782 (diff) | |
download | python-cinderclient-0fdd41d84ccfa16245d60617a4099e120f6100cf.tar.gz |
Merge "Fix output of update command"
-rw-r--r-- | cinderclient/v2/shell.py | 5 | ||||
-rw-r--r-- | cinderclient/v3/shell.py | 2 |
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') |