summaryrefslogtreecommitdiff
path: root/openstackclient/image/v1
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-11-30 23:47:15 +0000
committerGerrit Code Review <review@openstack.org>2015-11-30 23:47:15 +0000
commit10aa2d9b0ffc1a77d0c62531a4591979e0d2b983 (patch)
tree63fa13376a065eae42ed69d04a65d7a2829b2f0c /openstackclient/image/v1
parent0cdfa623838007174e67c42e31ee067d542c51ed (diff)
parent342fd158e9a0744ff75e9234c996b6b5ef1907ff (diff)
downloadpython-openstackclient-10aa2d9b0ffc1a77d0c62531a4591979e0d2b983.tar.gz
Merge "Add status column for "openstack image list""
Diffstat (limited to 'openstackclient/image/v1')
-rw-r--r--openstackclient/image/v1/image.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/openstackclient/image/v1/image.py b/openstackclient/image/v1/image.py
index 35e9ef43..4ebc8f93 100644
--- a/openstackclient/image/v1/image.py
+++ b/openstackclient/image/v1/image.py
@@ -354,7 +354,12 @@ class ListImage(lister.Lister):
kwargs['public'] = True
if parsed_args.private:
kwargs['private'] = True
- kwargs['detailed'] = bool(parsed_args.property or parsed_args.long)
+ # Note: We specifically need to do that below to get the 'status'
+ # column.
+ #
+ # Always set kwargs['detailed'] to True, and then filter the columns
+ # according to whether the --long option is specified or not.
+ kwargs['detailed'] = True
if parsed_args.long:
columns = (
@@ -382,7 +387,7 @@ class ListImage(lister.Lister):
'Properties',
)
else:
- columns = ("ID", "Name")
+ columns = ("ID", "Name", "Status")
column_headers = columns
# List of image data received