@@ -31,6 +31,7 @@ def image_list(
3131 detailed = False ,
3232 public = False ,
3333 private = False ,
34+ community = False ,
3435 shared = False ,
3536 ** filter
3637 ):
@@ -44,25 +45,29 @@ def image_list(
4445 Return public images if True
4546 :param private:
4647 Return private images if True
48+ :param community:
49+ Return commuity images if True
4750 :param shared:
4851 Return shared images if True
4952
50- If public, private and shared are all True or all False then all
51- images are returned. All arguments False is equivalent to no filter
52- and all images are returned. All arguments True is a filter that
53- includes all public, private and shared images which is the same set
54- as all images.
53+ If public, private, community and shared are all True or all False
54+ then all images are returned. All arguments False is equivalent to no
55+ filter and all images are returned. All arguments True is a filter
56+ that includes all public, private, community and shared images which
57+ is the same set as all images.
5558
5659 http://docs.openstack.org/api/openstack-image-service/2.0/content/list-images.html
5760 """
5861
59- if not public and not private and not shared :
62+ if not public and not private and not community and not shared :
6063 # No filtering for all False
6164 filter .pop ('visibility' , None )
6265 elif public :
6366 filter ['visibility' ] = 'public'
6467 elif private :
6568 filter ['visibility' ] = 'private'
69+ elif community :
70+ filter ['visibility' ] = 'community'
6671 elif shared :
6772 filter ['visibility' ] = 'shared'
6873
0 commit comments