update the way to handle ipaddress attribute

http://tickets.opscode.com/browse/COOK-3134
Merge pull request #93 from pierreozoux/COOK-3134

update the way to handle ipaddress attribute