lib/chef/topology.rb in knife-topo-2.0.4 vs lib/chef/topology.rb in knife-topo-2.0.5
- old
+ new
@@ -54,10 +54,10 @@
# Make sure the JSON has an id and other expected fields
def raw_data=(new_data)
@strategy = new_data['strategy'] || 'direct_to_node'
new_data['id'] ||= (new_data['name'] || 'undefined')
-# new_data['name'] ||= (new_data['id'])
+ new_data['name'] ||= (new_data['id'])
new_data['nodes'] ||= []
super(normalize(new_data))
end
# clean up some variations so we only have to process one way