Merge pull request #6654 from jkldgoefgkljefogeg/master

fix #6579 cli ps --all
This commit is contained in:
Ulysses Souza 2019-05-14 11:53:04 +02:00 committed by GitHub
commit b612361541
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -721,7 +721,8 @@ class TopLevelCommand(object):
if options['--all']:
containers = sorted(self.project.containers(service_names=options['SERVICE'],
one_off=OneOffFilter.include, stopped=True))
one_off=OneOffFilter.include, stopped=True),
key=attrgetter('name'))
else:
containers = sorted(
self.project.containers(service_names=options['SERVICE'], stopped=True) +