]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cookbooks.git/commitdiff
mons should be an array, not a hash, even when empty eval3
authorGreg Farnum <greg@inktank.com>
Wed, 26 Sep 2012 00:11:39 +0000 (17:11 -0700)
committerGreg Farnum <greg@inktank.com>
Thu, 27 Sep 2012 21:06:12 +0000 (14:06 -0700)
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

index e6e3319e572d80ca814ba51f8d5e4b2dcbd087c4..c33cfd0adea0754ede312eb28f4fa324d4ab8b53 100644 (file)
@@ -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