Wrap long lines and restrict lines to 105 characters.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
28e652daec
commit
57fc85b457
11 changed files with 106 additions and 43 deletions
|
|
@ -195,7 +195,9 @@ class Service(object):
|
|||
|
||||
if num_running != len(all_containers):
|
||||
# we have some stopped containers, let's start them up again
|
||||
stopped_containers = sorted([c for c in all_containers if not c.is_running], key=attrgetter('number'))
|
||||
stopped_containers = sorted(
|
||||
(c for c in all_containers if not c.is_running),
|
||||
key=attrgetter('number'))
|
||||
|
||||
num_stopped = len(stopped_containers)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue