summaryrefslogtreecommitdiff
path: root/openstackclient/image
diff options
context:
space:
mode:
authorNobuto Murata <nobuto.murata@canonical.com>2018-04-30 14:32:08 +0900
committerDean Troyer <dtroyer@gmail.com>2018-07-24 22:48:01 +0000
commit860639a548a2c07193662cd361432cb5061c2a7f (patch)
tree906a3076b309926b2a1e5c0de2328481d6cbda2d /openstackclient/image
parente4b8c31cd399f469b3378069187614763c24451d (diff)
downloadpython-openstackclient-860639a548a2c07193662cd361432cb5061c2a7f.tar.gz
Support --community in openstack image list
"--community" was added to "image create" and "image set" previously, but was missed in "image list". Change-Id: I959fdd7f67ae62c8326659ce52389228152ec019 Story: 2001925 Task: 14453
Diffstat (limited to 'openstackclient/image')
-rw-r--r--openstackclient/image/v2/image.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/openstackclient/image/v2/image.py b/openstackclient/image/v2/image.py
index 4c7c815f..51963f7d 100644
--- a/openstackclient/image/v2/image.py
+++ b/openstackclient/image/v2/image.py
@@ -440,6 +440,13 @@ class ListImage(command.Lister):
help=_("List only private images"),
)
public_group.add_argument(
+ "--community",
+ dest="community",
+ action="store_true",
+ default=False,
+ help=_("List only community images"),
+ )
+ public_group.add_argument(
"--shared",
dest="shared",
action="store_true",
@@ -516,6 +523,8 @@ class ListImage(command.Lister):
kwargs['public'] = True
if parsed_args.private:
kwargs['private'] = True
+ if parsed_args.community:
+ kwargs['community'] = True
if parsed_args.shared:
kwargs['shared'] = True
if parsed_args.limit: