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.

Alfredo Palhares


As pointed to me on #chef

node name[1] is not an automatic attribute