[KNIFE-344] Attribute fix

http://tickets.opscode.com/browse/KNIFE-344

fixes https://gist.github.com/hh/5341841