diff options
| author | Jenkins <jenkins@review.openstack.org> | 2015-11-30 23:47:15 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2015-11-30 23:47:15 +0000 |
| commit | 10aa2d9b0ffc1a77d0c62531a4591979e0d2b983 (patch) | |
| tree | 63fa13376a065eae42ed69d04a65d7a2829b2f0c /openstackclient/image/v1 | |
| parent | 0cdfa623838007174e67c42e31ee067d542c51ed (diff) | |
| parent | 342fd158e9a0744ff75e9234c996b6b5ef1907ff (diff) | |
| download | python-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.py | 9 |
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 |
