Skip to content

Instantly share code, notes, and snippets.

@janl
Created December 18, 2015 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save janl/3c62521d25207564e6e4 to your computer and use it in GitHub Desktop.
Save janl/3c62521d25207564e6e4 to your computer and use it in GitHub Desktop.
diff --git a/dev/run b/dev/run
index 147bead..303dc7f 100755
--- a/dev/run
+++ b/dev/run
@@ -393,7 +393,10 @@ def cluster_setup(ctx):
if enable_cluster(lead_port, *ctx['admin']):
for num in range(1, ctx['N']):
node_port, _ = get_ports(num + 1)
- enable_cluster(node_port, *ctx['admin'])
+ enabled = enable_cluster(node_port, *ctx['admin'])
+ if not enabled:
+ print('Failed to _setup_cluster on %s: %s' % (node, resp.read()))
+ sys.exit(1)
add_node(lead_port, node_port, *ctx['admin'])
finish_cluster(lead_port, *ctx['admin'])
return lead_port
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment