mirror of https://github.com/docker/compose.git
Update doc string to reflect new behaviour.
Signed-off-by: Chris Corbyn <chris@w3style.co.uk>
This commit is contained in:
parent
9dd53ecdaa
commit
14cbe40543
|
@ -95,13 +95,13 @@ class Project(object):
|
||||||
by the provided list of names, or all auto_start services if
|
by the provided list of names, or all auto_start services if
|
||||||
service_names is None or [].
|
service_names is None or [].
|
||||||
|
|
||||||
If include_links is specified, returns a list prepended with the needed
|
If include_links is specified, returns a list including the links for
|
||||||
links for service_names, in order of dependency.
|
service_names, in order of dependency.
|
||||||
|
|
||||||
Preserves the original order of self.services.
|
Preserves the original order of self.services where possible,
|
||||||
|
reordering as needed to resolve links.
|
||||||
|
|
||||||
Raises NoSuchService if any of the named services
|
Raises NoSuchService if any of the named services do not exist.
|
||||||
do not exist.
|
|
||||||
"""
|
"""
|
||||||
if service_names is None or len(service_names) == 0:
|
if service_names is None or len(service_names) == 0:
|
||||||
return [s for s in self.services if s.options['auto_start']]
|
return [s for s in self.services if s.options['auto_start']]
|
||||||
|
|
Loading…
Reference in New Issue