Created
December 18, 2015 15:08
-
-
Save janl/3c62521d25207564e6e4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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