Skip to content

Commit

Permalink
fix for nodes_search compatibility issue with API v4
Browse files Browse the repository at this point in the history
  • Loading branch information
schewara committed Oct 21, 2015
1 parent 002a4d2 commit 1e7fd5d
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 1e7fd5d

Please sign in to comment.