diff options
-rw-r--r-- | lib/chef/mixin/cron_validations.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/mixin/cron_validations.rb b/lib/chef/mixin/cron_validations.rb index 0723560e45..8428624dc2 100644 --- a/lib/chef/mixin/cron_validations.rb +++ b/lib/chef/mixin/cron_validations.rb @@ -66,8 +66,8 @@ class Chef # @param spec the value to validate # @return [Boolean] valid or not? def self.validate_dow(spec) - return spec == "*" || - validate_numeric(spec, 0, 7) || + spec == "*" || + validate_numeric(spec, 0, 7) || %w{sun mon tue wed thu fri sat}.include?(String(spec).downcase) end end |