Skip to content

Commit

Permalink
Merge pull request #42 from raphink/pdb4
Browse files Browse the repository at this point in the history
Fix PuppetDB 4 support
  • Loading branch information
acidprime committed Jul 21, 2016
2 parents c888813 + 5464bbc commit 3b081d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/catalog-diff/searchfacts.rb
Expand Up @@ -98,7 +98,7 @@ def find_nodes_puppetdb(env)
)
end
json_query = URI.escape(query.to_json)
unless filtered = PSON.load(connection.request_get("/pdb/query/v4/nodes/?query=#{json_query}", {"Accept" => 'application/json'}).body)
unless filtered = PSON.load(connection.request_get("/pdb/query/v4/nodes?query=#{json_query}", {"Accept" => 'application/json'}).body)
raise "Error parsing json output of puppet search"
end
names = filtered.map { |node| node['certname'] }
Expand Down

0 comments on commit 3b081d9

Please sign in to comment.