From dc355e7aa22cb937ddabef9c0300301e2702422a Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sat, 10 Mar 2012 00:25:13 +0100 Subject: [PATCH] be consistent - log parsing is easy Signed-off-by: Nico Schottelius --- bin/cdist | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/cdist b/bin/cdist index d291beb0..c6467477 100755 --- a/bin/cdist +++ b/bin/cdist @@ -132,8 +132,6 @@ def configinstall(args, mode): try: configinstall_onehost(host, args, mode, parallel=False) except cdist.Error as e: - # FIXME: save the error and display at the end? - # Would be non-consistent to parallel mode failed_hosts.append(host) # Catch errors in parallel mode when joining @@ -171,6 +169,7 @@ def configinstall_onehost(host, args, mode, parallel): context.cleanup() except cdist.Error as e: + # We are running in our own process here, need to sys.exit! if parallel: log.error(e) sys.exit(1)