lib/chef/knife/topo_cookbook_create.rb in knife-topo-1.1.0 vs lib/chef/knife/topo_cookbook_create.rb in knife-topo-1.1.2
- old
+ new
@@ -149,10 +149,10 @@
end
end
# Print out qualified attributes
def print_qualified_attr(file, qualifier_hash)
- file.puts "if node['topo']['#{qualifier_hash['qualifier']}'] == \"#{qualifier_hash['value']}\""
+ file.puts "if node['topo'] && node['topo']['#{qualifier_hash['qualifier']}'] == \"#{qualifier_hash['value']}\""
print_priority_attrs(file, qualifier_hash, 2)
file.puts "end"
end
# Process the attributes not needing qualification
\ No newline at end of file