]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/systemd/resources/timer.rb
Limit required attributes to the actions that need them
[chef.git] / cookbooks / systemd / resources / timer.rb
index c18db64c8882db757480aef22562db48016cb8d0..7dc4cab6544a69b8be0dbd93c660e0d39166a9cf 100644 (file)
@@ -20,7 +20,7 @@
 default_action :create
 
 property :timer, String, :name_property => true
 default_action :create
 
 property :timer, String, :name_property => true
-property :description, String, :required => true
+property :description, String, :required => [:create]
 property :after, [String, Array]
 property :wants, [String, Array]
 property :on_active_sec, [Integer, String]
 property :after, [String, Array]
 property :wants, [String, Array]
 property :on_active_sec, [Integer, String]