Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions resources/providers/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,12 @@
known_ips = {}
node_keys = Chef::Node.list.keys.sort
node_keys.each do |n_key|
n = Chef::Node.load n_key
known_ips[n['rbname']] = n['ipaddress'] if n['ipaddress'] && n['rbname']
begin
n = Chef::Node.load n_key
known_ips[n['rbname']] = n['ipaddress'] if n['ipaddress'] && n['rbname']
rescue
Chef::Log.info('No permissions to read this node')
end
end

directory '/etc/objects' do
Expand Down