The URL had been /inventory/search, and changed in Puppet to /facts_search/search, so Dashboard reflects this.
Paired-With: Daniel Pittman Signed-off-by: Nick Lewis <[email protected]> --- Local-branch: ticket/next/6601 app/models/node.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/app/models/node.rb b/app/models/node.rb index 9ddb87c..d8660ff 100644 --- a/app/models/node.rb +++ b/app/models/node.rb @@ -78,7 +78,7 @@ class Node < ActiveRecord::Base map {|param| "facts.#{CGI::escape param["fact"]}.#{param["comparator"]}=#{CGI::escape param["value"]}" }. join("&") - url = "https://#{SETTINGS.inventory_server}:#{SETTINGS.inventory_port}/production/inventory/search?#{query_string}" + url = "https://#{SETTINGS.inventory_server}:#{SETTINGS.inventory_port}/production/facts_search/search?#{query_string}" matches = JSON.parse(PuppetHttps.get(url, 'pson')) nodes = Node.find_all_by_name(matches) found = nodes.map(&:name).map(&:downcase) -- 1.7.4.1 -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.
