lib/mb/group.rb in motherbrain-0.14.4 vs lib/mb/group.rb in motherbrain-0.14.5

- old
+ new

@@ -55,11 +55,11 @@ items += chef_attributes.collect do |key, value| key = key.gsub(/\./, "_") "#{attribute_escape(key)}:#{value}" end - items += roles.collect { |role| "roles:#{solr_escape(role)}" } - items += recipes.collect { |recipe| "recipes:#{solr_escape(recipe)}" } + items += roles.collect { |role| "run_list:#{solr_escape('role['+role+']')}" } + items += recipes.collect { |recipe| "run_list:#{solr_escape('recipe['+recipe+']')}" } items.join(' AND ') end def add_role(name)