diff options
author | Tim Burke <tim.burke@gmail.com> | 2021-04-08 17:16:05 -0700 |
---|---|---|
committer | Tim Burke <tim.burke@gmail.com> | 2021-09-21 08:40:45 -0700 |
commit | ad3e8e49d072d8137c85c451db427d07e1301799 (patch) | |
tree | a59222eb9ad5f317f37379397786d31a9fdb8fba /swiftclient | |
parent | 5129b33505691f5c4a3e33f2878b157cbd5b4a62 (diff) | |
download | python-swiftclient-ad3e8e49d072d8137c85c451db427d07e1301799.tar.gz |
Include storage policy when listing account with --long
Change-Id: Ibc2f9445b5a8e80cfb73d0706e20a7e4c62eec4a
Diffstat (limited to 'swiftclient')
-rwxr-xr-x | swiftclient/shell.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/swiftclient/shell.py b/swiftclient/shell.py index cf90ffc..1878272 100755 --- a/swiftclient/shell.py +++ b/swiftclient/shell.py @@ -550,10 +550,11 @@ def st_list(parser, args, output_manager, return_parser=False): datestamp = strftime('%Y-%m-%d %H:%M:%S', utc) except TypeError: datestamp = '????-??-?? ??:??:??' + storage_policy = meta.get('x-storage-policy', '???') if not options['totals']: output_manager.print_msg( - "%12s %s %s %s", count, byte_str, - datestamp, item_name) + "%12s %s %s %-15s %s", count, byte_str, + datestamp, storage_policy, item_name) else: # list container contents subdir = item.get('subdir') content_type = item.get('content_type') |