How to get the Node name using attributes in chef

HI,

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 .

Regards,
Ramadurai.

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

node.name

Thanks Chris sullivan. I got the value .