From f908204676b70fd2702ffa3951fc7cff951e400e Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Tue, 25 Sep 2012 17:11:39 -0700 Subject: [PATCH] mons should be an array, not a hash, even when empty This was set up incorrectly in 896dee861221380b403ed2cb071c1338cef9d8d7, which I now believe can occur when SOLR is just slow to update and the initial monitor queries too quickly. --- libraries/default.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/default.rb b/libraries/default.rb index e6e3319..c33cfd0 100644 --- a/libraries/default.rb +++ b/libraries/default.rb @@ -16,7 +16,8 @@ def get_mon_nodes(ceph_environment, extra_search=nil) if not search_string.nil? and not extra_search.nil? search_string = "(#{search_string}) AND (#{extra_search})" end - mons = {} + mons = [] + if not search_string.nil? mons = search(:node, search_string) end -- 2.47.3