diff options
author | Zuul <zuul@review.opendev.org> | 2020-01-16 00:58:12 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2020-01-16 00:58:12 +0000 |
commit | 80cdada0c20edd672e962c96a87f33932c61e1fe (patch) | |
tree | 1f07de095694b1d103b7effe56f120d353b47762 /swiftclient | |
parent | 90e71f5506d4bf103df819eef35d2784875adb5f (diff) | |
parent | e83cd32e2af26ecb9ac9520ac2958f186ba1888c (diff) | |
download | python-swiftclient-80cdada0c20edd672e962c96a87f33932c61e1fe.tar.gz |
Merge "Add test for bulk-delete-attempt-counter fix"
Diffstat (limited to 'swiftclient')
-rwxr-xr-x | swiftclient/shell.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/swiftclient/shell.py b/swiftclient/shell.py index 5e23bc4..d18fc9e 100755 --- a/swiftclient/shell.py +++ b/swiftclient/shell.py @@ -170,7 +170,7 @@ def st_delete(parser, args, output_manager, return_parser=False): c = r.get('container', '') o = r.get('object', '') a = (' [after {0} attempts]'.format(r.get('attempts')) - if r.get('attempts') > 1 else '') + if r.get('attempts', 1) > 1 else '') if r['action'] == 'bulk_delete': if r['success']: |