diff options
-rw-r--r-- | lib/chef/mixin/cron_validations.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/chef/mixin/cron_validations.rb b/lib/chef/mixin/cron_validations.rb index 991f52ddf3..eef14718b4 100644 --- a/lib/chef/mixin/cron_validations.rb +++ b/lib/chef/mixin/cron_validations.rb @@ -29,9 +29,7 @@ class Chef return true if spec == "*" if spec.respond_to? :to_int - return false unless spec >= min && spec <= max - - return true + return spec >= min && spec <= max end # Lists of invidual values, ranges, and step values all share the validity range for type |