diff options
author | Dmitriy Uvarenkov <duvarenkov@mirantis.com> | 2016-02-23 13:28:23 +0200 |
---|---|---|
committer | Dmitriy Uvarenkov <duvarenkov@mirantis.com> | 2016-03-07 16:55:08 +0200 |
commit | 7c1e7b05f44657e8ed59e2ec7f95c3c09e845226 (patch) | |
tree | 112f25a29de93c95f72b539d3d42de9e09e956ec /heatclient/v1 | |
parent | b80d64703c1310d2002fdf87cedaa72d6cdffc06 (diff) | |
download | python-heatclient-7c1e7b05f44657e8ed59e2ec7f95c3c09e845226.tar.gz |
Fixed exceptions handling in stacks deleting
When you delete multiple stacks like
'stackA stackB stackC' and you dont have enough
rights for deleting stackB, it throws 403.
In result stackA is deleted, but stackC is still
there.
Change-Id: If2795a4a7a6987da15b5f3f23ee066000e1f2a65
Diffstat (limited to 'heatclient/v1')
-rw-r--r-- | heatclient/v1/shell.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/heatclient/v1/shell.py b/heatclient/v1/shell.py index acea3fc..a61c0bc 100644 --- a/heatclient/v1/shell.py +++ b/heatclient/v1/shell.py @@ -323,7 +323,7 @@ def do_stack_delete(hc, args): fields = {'stack_id': sid} try: hc.stacks.delete(**fields) - except exc.HTTPNotFound as e: + except (exc.HTTPNotFound, exc.Forbidden) as e: failure_count += 1 print(e) if failure_count: |