How to get the Node name using attributes in chef


I want to get the node name as attributes which is in chef server.

At the time of bootstrapping the node I have used node name as TestNode. So I need that node name as attributes in my recipe.

Can anyone tell me how to get that .


You should be able to get the name from the node object

Thanks Chris sullivan. I got the value .