diff options
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/puppet/type/schedule.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/puppet/type/schedule.rb b/lib/puppet/type/schedule.rb index e664a6e0c..c68422849 100755 --- a/lib/puppet/type/schedule.rb +++ b/lib/puppet/type/schedule.rb @@ -228,7 +228,7 @@ module Puppet See the ``periodmatch`` attribute for tuning whether to match times by their distance apart or by their specific value." - newvalues(:hourly, :daily, :weekly, :monthly) + newvalues(:hourly, :daily, :weekly, :monthly, :never) @@scale = { :hourly => 3600, @@ -246,6 +246,8 @@ module Puppet } def match?(previous, now) + return false if value == :never + value = self.value case @parent[:periodmatch] when :number |