Posted By

therobot on 11/23/10


ruby chef

Versions (?)

Programatically Delete chef attributes on a recipe

 / Published in: Ruby

It's necessary to do this for each of automaticattrs, overrideattrs, normalattrs and defaultattrs

  1. node.automatic_attrs[:foo].delete(:bar) rescue nil

Report this snippet  


RSS Icon Subscribe to comments
Posted By: therobot on November 24, 2010

in chef 0.8 you can do : node.attribute[:foo].delete(:bar)

You need to login to post a comment.