Programatically Delete chef attributes on a recipe


/ Published in: Ruby
Save to your folder(s)

It's necessary to do this for each of automatic_attrs, override_attrs, normal_attrs and default_attrs


Copy this code and paste it in your HTML
  1. node.automatic_attrs[:foo].delete(:bar) rescue nil

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.