diff options
author | PanFengyun <pan_feng_yun@163.com> | 2016-03-17 12:59:07 +0800 |
---|---|---|
committer | PanFengyun <pan_feng_yun@163.com> | 2016-03-17 12:59:30 +0800 |
commit | 4bf7e55aa369e7694d560284d767257abdf12895 (patch) | |
tree | 0e7e04d195e98ca706a35538075c170d7c7d9800 /heatclient/v1 | |
parent | 641cde5ff44aea0ca51824a7c1499d34a4548a34 (diff) | |
download | python-heatclient-4bf7e55aa369e7694d560284d767257abdf12895.tar.gz |
stack-delete command should not call do_stack_list.
the stack-delete operation is asynchronous, and should not return
anything.
Change-Id: I75287b612358c5e76e47a9e53200c23946f01d8f
Closes-Bug: #1556407
Diffstat (limited to 'heatclient/v1')
-rw-r--r-- | heatclient/v1/shell.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/heatclient/v1/shell.py b/heatclient/v1/shell.py index 35540d8..98cc427 100644 --- a/heatclient/v1/shell.py +++ b/heatclient/v1/shell.py @@ -339,6 +339,8 @@ def do_stack_delete(hc, args): fields = {'stack_id': sid} try: hc.stacks.delete(**fields) + success_msg = _("Request to delete stack %s has been accepted.") + print(success_msg % sid) except (exc.HTTPNotFound, exc.Forbidden) as e: failure_count += 1 print(e) @@ -347,7 +349,6 @@ def do_stack_delete(hc, args): "stacks.") % {'count': failure_count, 'total': len(args.id)}) - do_stack_list(hc) @utils.arg('-O', '--output-file', metavar='<FILE>', |