Use  in the correct context to access attributes

Fixes https://github.com/SimpleFinance/chef-zookeeper/commit/eae1eb5d94b60ed4360ceff11f0cfae343474d3a#commitcomment-6336146