Can not acess node name on the recipe

Hello Chefs,

I can’t acess node[“name”] inside a recipe the output is nil
Altough node.to_hash()[“name”] gives me the correct attribute.

other attributes like node[“ipaddress”] work correctly

I am using chef 10.16.2 both server and client.


Regards,
Alfredo Palhares

As pointed to me on #chef

node name[1] is not an automatic attribute

[1] https://github.com/opscode/chef/blob/10.16.2/chef/lib/chef/node.rb#L464