Sort output of `ccp images list` in alphabet order

Change-Id: I9b97b0689d1519263332e30f1eff409d6981f69b
This commit is contained in:
Ilya Shakhat 2016-11-23 17:07:11 +03:00
parent facf0f6282
commit f887cdd599
1 changed files with 2 additions and 2 deletions

View File

@ -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']),
)