diff options
author | Tim Burke <tim.burke@gmail.com> | 2019-11-15 22:08:51 +0000 |
---|---|---|
committer | Tim Burke <tim.burke@gmail.com> | 2019-11-15 22:08:51 +0000 |
commit | e83cd32e2af26ecb9ac9520ac2958f186ba1888c (patch) | |
tree | e448b207603fce17b205a7bf384f1c58bd9df1be /swiftclient | |
parent | 709ab385c6eb3d3c7b313bc48c959e9ace606ae5 (diff) | |
download | python-swiftclient-e83cd32e2af26ecb9ac9520ac2958f186ba1888c.tar.gz |
Add test for bulk-delete-attempt-counter fix
Change-Id: Ifdeefeb4a5a3fc6895bd6cda695684de02f8c602
Related-Change: If4af9141fe4f3436a4e9e0e2dfc24c6ec7292996
Related-Bug: #1852808
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']: |