diff options
author | Corey Hemminger <hemminger@hotmail.com> | 2017-04-28 16:25:22 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-28 16:25:22 -0500 |
commit | 1bc27a316b8f4c990b8a7e3d1c15d12f7ffe4468 (patch) | |
tree | 7e82b204e653bd3bf1209247623a234ae623a059 | |
parent | 425e8ac704ec2bc12f8377b71c00acc4d3404b0c (diff) | |
download | chef-1bc27a316b8f4c990b8a7e3d1c15d12f7ffe4468.tar.gz |
Updated to fix day validation with monthly frequency
This should fix issue #6104
Signed-off-by: Corey Hemminger <corey.hemminger@nativex.com>
-rw-r--r-- | lib/chef/resource/windows_task.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/resource/windows_task.rb b/lib/chef/resource/windows_task.rb index 25e76f4220..e6f8c0b7d2 100644 --- a/lib/chef/resource/windows_task.rb +++ b/lib/chef/resource/windows_task.rb @@ -161,8 +161,8 @@ class Chef end def validate_create_day(day, frequency) - unless [:weekly].include?(frequency) - raise "day attribute is only valid for tasks that run weekly" + unless [:weekly, :monthly].include?(frequency) + raise "day attribute is only valid for tasks that run monthly or weekly" end if day.is_a?(String) && day.to_i.to_s != day days = day.split(",") |