Return correct exit code from fig run

Closes #197
This commit is contained in:
Ben Firshman 2014-05-01 18:10:38 +01:00
parent 8251dec587
commit 983337401c
1 changed files with 2 additions and 1 deletions

View File

@ -233,10 +233,11 @@ class TopLevelCommand(Command):
with self._attach_to_container(container.id, raw=tty) as c:
service.start_container(container, ports=None, one_off=True)
c.run()
exit_code = container.wait()
if options['--rm']:
container.wait()
log.info("Removing %s..." % container.name)
self.client.remove_container(container.id)
sys.exit(exit_code)
def scale(self, options):
"""