From 990227d9888fbf2915e917ba8c3643a4917362f2 Mon Sep 17 00:00:00 2001 From: Alex Pop Date: Tue, 14 Jul 2015 20:32:06 +0100 Subject: [PATCH] Fix exception when first node is launched. Fixes issue #285 --- providers/cluster.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/cluster.rb b/providers/cluster.rb index 74d17fdc..cd801c6b 100644 --- a/providers/cluster.rb +++ b/providers/cluster.rb @@ -80,7 +80,7 @@ def current_cluster_name(cluster_status) def running_nodes(cluster_status) pattern = '({running_nodes,\[\'*)(.*?)(\'*\]})' match = match_pattern_cluster_status(cluster_status, pattern) - result = match && match.gsub!(/'/, '').split(',') + result = match && match.gsub(/'/, '') Chef::Log.debug("[rabbitmq_cluster] running_nodes : #{result}") !result.nil? ? result.split(',') : [] end