Sort output of `ccp images list` in alphabet order
Change-Id: I9b97b0689d1519263332e30f1eff409d6981f69b
This commit is contained in:
parent
facf0f6282
commit
f887cdd599
|
@ -215,7 +215,7 @@ class ShowStatus(lister.Lister):
|
|||
|
||||
|
||||
class ImagesList(BaseCommand, lister.Lister):
|
||||
"""Get images mathcing list of components"""
|
||||
"""Get images matching list of components"""
|
||||
|
||||
def get_parser(self, *args, **kwargs):
|
||||
parser = super(ImagesList, self).get_parser(*args, **kwargs)
|
||||
|
@ -230,7 +230,7 @@ class ImagesList(BaseCommand, lister.Lister):
|
|||
build.match_dockerfiles_by_component(dockerfiles, component)
|
||||
return (
|
||||
('Name',),
|
||||
((d['name'],) for d in dockerfiles.values() if d['match']),
|
||||
sorted((d['name'],) for d in dockerfiles.values() if d['match']),
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue