From 2f3127c4583c225749056dc7993d1f4e3f877ab8 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Sat, 25 Oct 2014 00:48:36 +0000 Subject: [PATCH] Allow nonzero puppet exit codes when launching * launch/launch-node.py: Now that we're using --detailed-exit-codes with puppet, we should not abort when the ssh call exits nonzero. Puppet explicitly returns nonzero codes which indicate success conditions, and we already have a function in place to interpret them. Change-Id: If66d345902d05fa0898d202f5f71c087df9f4ce7 --- launch/launch-node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launch/launch-node.py b/launch/launch-node.py index 94b634f02e..adfb09b134 100755 --- a/launch/launch-node.py +++ b/launch/launch-node.py @@ -128,7 +128,7 @@ def bootstrap_server(server, admin_pass, key, cert, environment, name, "--server %s " "--detailed-exitcodes " "--no-daemonize --verbose --onetime --pluginsync true " - "--certname %s" % (environment, puppetmaster, certname)) + "--certname %s" % (environment, puppetmaster, certname), error_ok=True) utils.interpret_puppet_exitcodes(rc, output) ssh_client.ssh("reboot")