]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/squid/resources/fragment.rb
Limit required attributes to the actions that need them
[chef.git] / cookbooks / squid / resources / fragment.rb
index 22c31ba47fbddc7b454c0c0f17a6d94b39779d9f..f4099ad7bd9fb4b62b0a753bee8f56d50342382d 100644 (file)
@@ -20,7 +20,7 @@
 default_action :create
 
 property :fragment, :kind_of => String, :name_property => true
-property :template, :kind_of => String, :required => true
+property :template, :kind_of => String, :required => [:create]
 property :variables, :kind_of => Hash, :default => {}
 
 action :create do