]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/imagery/resources/site.rb
Limit required attributes to the actions that need them
[chef.git] / cookbooks / imagery / resources / site.rb
index 711ae3e504b6227649207a0529106fde5e7e67de..50bfd24b8fd2dcc914f05d73ed3af0145ef3b3ee 100644 (file)
@@ -22,9 +22,9 @@ require "yaml"
 default_action :create
 
 property :site, String, :name_property => true
-property :title, String, :required => true
+property :title, String, :required => [:create]
 property :aliases, [String, Array], :default => []
-property :bbox, Array, :required => true
+property :bbox, Array, :required => [:create]
 
 action :create do
   directory "/srv/#{new_resource.site}" do