Skip to content

Commit

Permalink
Merge pull request #17 from schewara/node_seach-APIv4_compatibility-fix
Browse files Browse the repository at this point in the history
fix node_search compatibility issue with API v4
  • Loading branch information
ploubser committed Dec 1, 2015
2 parents 002a4d2 + 1e7fd5d commit b715753
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/puppetdb_discovery.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def identity_search(filter)

# Looks up all the nodes registered in puppetdb without applying any filters
def node_search
JSON.parse(make_request('nodes', nil)).map { |node| node['name'] }
JSON.parse(make_request('nodes', nil)).map { |node| node['name'] || node['certname'] }
end

def make_request(endpoint, query)
Expand Down

0 comments on commit b715753

Please sign in to comment.