diff options
author | Ryota Arai <ryota.arai@gmail.com> | 2013-12-07 23:56:26 +0900 |
---|---|---|
committer | Bryan McLellan <btm@getchef.com> | 2014-03-20 13:06:29 -0700 |
commit | aef824f3f6e6300547f96436aab02cfe799c3e12 (patch) | |
tree | 8bba1e97f4e5f9eb477a2fa2a2ba82047869735b /lib/chef/resource/cron.rb | |
parent | 2fa66bd039aaed21829df80885d647df29f576e3 (diff) | |
download | chef-aef824f3f6e6300547f96436aab02cfe799c3e12.tar.gz |
Resource::Cron#weekday accepts symbol arg.
Diffstat (limited to 'lib/chef/resource/cron.rb')
-rw-r--r-- | lib/chef/resource/cron.rb | 4 |
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( |