Merge pull request #308 from orchardup/fix-fig-up-attach

Regardless of dependencies, `fig up` only attaches to what you specify
This commit is contained in:
Ben Firshman 2014-07-11 20:51:54 +01:00
commit 94d82d4acb
1 changed files with 3 additions and 1 deletions

View File

@ -322,12 +322,14 @@ class TopLevelCommand(Command):
recreate = not options['--no-recreate'] recreate = not options['--no-recreate']
service_names = options['SERVICE'] service_names = options['SERVICE']
to_attach = self.project.up( self.project.up(
service_names=service_names, service_names=service_names,
start_links=start_links, start_links=start_links,
recreate=recreate recreate=recreate
) )
to_attach = [c for s in self.project.get_services(service_names) for c in s.containers()]
if not detached: if not detached:
print("Attaching to", list_containers(to_attach)) print("Attaching to", list_containers(to_attach))
log_printer = LogPrinter(to_attach, attach_params={"logs": True}) log_printer = LogPrinter(to_attach, attach_params={"logs": True})