From ad3e8e49d072d8137c85c451db427d07e1301799 Mon Sep 17 00:00:00 2001 From: Tim Burke Date: Thu, 8 Apr 2021 17:16:05 -0700 Subject: Include storage policy when listing account with --long Change-Id: Ibc2f9445b5a8e80cfb73d0706e20a7e4c62eec4a --- swiftclient/shell.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'swiftclient') 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') -- cgit v1.2.1