]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/imagery/resources/layer.rb
Limit required attributes to the actions that need them
[chef.git] / cookbooks / imagery / resources / layer.rb
index 05a0452eeddd7775e4ed8b367f3a2248a3f3e24e..2cc90df563a6d9ba64ea8e2059eeb8471452e134 100644 (file)
@@ -23,7 +23,7 @@ default_action :create
 
 property :layer, String, :name_property => true
 property :site, String, :required => true
-property :source, String, :required => true
+property :source, String, :required => [:create]
 property :root_layer, [true, false], :default => false
 property :title, String
 property :copyright, String, :default => "Copyright"