We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69837e5 commit bd55a4aCopy full SHA for bd55a4a
recipes/entity.rb
@@ -33,7 +33,7 @@ class Chef::Recipe
33
34
35
response["values"].each do |value|
36
- unless value["ip_addresses"].nil?
+ unless value["ip_addresses"].nil? || node["cloud"].nil?
37
if value["ip_addresses"]["private0_v4"].eql? node["cloud"]["local_ipv4"]
38
node.set['cloud_monitoring']['label'] = value["label"]
39
end
0 commit comments