]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/ssl/resources/certificate.rb
Limit required attributes to the actions that need them
[chef.git] / cookbooks / ssl / resources / certificate.rb
index fd1bff0e4c13dc73d09e34280b8711e4529bd2bf..116c2bd4da0266a940bb02cd0b4f16dc375b0e5b 100644 (file)
@@ -20,7 +20,7 @@
 default_action :create
 
 property :certificate, String, :name_property => true
-property :domains, [String, Array], :required => true
+property :domains, [String, Array], :required => [:create]
 
 action :create do
   node.default[:letsencrypt][:certificates][new_resource.certificate] = {