summaryrefslogtreecommitdiff
path: root/openstackclient/image/v2
diff options
context:
space:
mode:
Diffstat (limited to 'openstackclient/image/v2')
-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 5c7d32d4..3d9c199d 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: