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


You need to login to view comments.