summaryrefslogtreecommitdiffstats
path: root/lib/puppet/type/cron.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/type/cron.rb')
-rwxr-xr-xlib/puppet/type/cron.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/type/cron.rb b/lib/puppet/type/cron.rb
index 7a1f37f1d..5a2533289 100755
--- a/lib/puppet/type/cron.rb
+++ b/lib/puppet/type/cron.rb
@@ -181,7 +181,7 @@ Puppet::Type.newtype(:cron) do
# If it has an alpha method defined, then we check
# to see if our value is in that list and if so we turn
# it into a number
- retval = alphacheck(value, alpha())
+ retval = alphacheck(value, alpha)
end
if retval
@@ -237,7 +237,7 @@ Puppet::Type.newtype(:cron) do
end
validate do |value|
- raise ArgumentError, "Invalid special schedule #{value.inspect}" unless specials().include?(value)
+ raise ArgumentError, "Invalid special schedule #{value.inspect}" unless specials.include?(value)
end
end