diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/puppet/type/cron.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/type/cron.rb b/lib/puppet/type/cron.rb index becaeae..9827f2c 100644 --- a/lib/puppet/type/cron.rb +++ b/lib/puppet/type/cron.rb @@ -152,7 +152,7 @@ Puppet::Type.newtype(:cron) do munge do |value| # Support 'absent' as a value, so that they can remove # a value - if value == 'absent' || value == :absent + if ['absent', :absent].include? value return :absent end @@ -252,7 +252,7 @@ Puppet::Type.newtype(:cron) do def munge(value) # Support value absent so that a schedule can be # forced to change to numeric. - if value == 'absent' || value == :absent + if ['absent', :absent].include? value return :absent end value |