Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

upgrade-zulip-stage-2: Abort upgrade if puppet will not run cleanly.

Alex Vandiver20841d9b65c1
diff --git a/scripts/lib/upgrade-zulip-stage-2 b/scripts/lib/upgrade-zulip-stage-2
index feab25655f2..d619d8e151c 100755
--- a/scripts/lib/upgrade-zulip-stage-2
+++ b/scripts/lib/upgrade-zulip-stage-2
@@ -416,6 +416,9 @@ if not args.skip_puppet and IS_SERVER_UP:
logging.info("No puppet changes found, skipping!")
args.skip_puppet = True
has_puppet_changes = False
+ elif try_puppet.returncode == 2:
+ logging.error("Puppet error -- aborting!")
+ sys.exit(1)
elif minimal_change:
logging.error("Would need to apply puppet changes -- aborting!")
sys.exit(1)