summaryrefslogtreecommitdiff
path: root/swiftclient
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2021-10-13 01:11:03 +0000
committerGerrit Code Review <review@openstack.org>2021-10-13 01:11:03 +0000
commit3f5d5b0252b3690af1e6577bf6584efe506f15fe (patch)
treef26006d17983d5823eda6bc8909a4ab59c39b4a1 /swiftclient
parentec6a346afbf93374b132c93f6d114d58999998de (diff)
parentad3e8e49d072d8137c85c451db427d07e1301799 (diff)
downloadpython-swiftclient-3f5d5b0252b3690af1e6577bf6584efe506f15fe.tar.gz
Merge "Include storage policy when listing account with --long"3.13.0
Diffstat (limited to 'swiftclient')
-rwxr-xr-xswiftclient/shell.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/swiftclient/shell.py b/swiftclient/shell.py
index fed0ef9..6da9d66 100755
--- a/swiftclient/shell.py
+++ b/swiftclient/shell.py
@@ -549,10 +549,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')