Skip to content

Commit

Permalink
Remove values from interfaces map to fixes laradji#149
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesplain authored and Mike Splain committed Jun 12, 2014
1 parent 861dddf commit 2e7abf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/host.rb
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
acc << template
end

existing_interfaces = host['interfaces'].values.map { |interface| Chef::Zabbix::API::HostInterface.from_api_response(interface).to_hash }
existing_interfaces = host['interfaces'].map { |interface| Chef::Zabbix::API::HostInterface.from_api_response(interface).to_hash }
new_host_interfaces = determine_new_host_interfaces(existing_interfaces, params_incoming[:interfaces].map(&:to_hash))

host_update_request = {
Expand Down

0 comments on commit 2e7abf6

Please sign in to comment.