summaryrefslogtreecommitdiff
path: root/lib/chef/resource
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/resource')
-rw-r--r--lib/chef/resource/cron.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/chef/resource/cron.rb b/lib/chef/resource/cron.rb
index 248f0038b5..72f86bc974 100644
--- a/lib/chef/resource/cron.rb
+++ b/lib/chef/resource/cron.rb
@@ -121,7 +121,9 @@ class Chef
converted_arg = arg
end
begin
- if integerize(arg) > 7 then raise RangeError end
+ if !arg.is_a?(Symbol) && integerize(arg) > 7
+ raise RangeError
+ end
rescue ArgumentError
end
set_or_return(