summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorey Hemminger <hemminger@hotmail.com>2022-07-21 11:27:35 -0500
committerGitHub <noreply@github.com>2022-07-21 11:27:35 -0500
commit328460fde6d5277f866844b8ea2604b5fc3326fa (patch)
treec36e69b431e8454d21d4a272383bfd314e048aff
parent0bf13f7da5f9e24c99d6ea5a4e98de0c1e563d71 (diff)
downloadchef-328460fde6d5277f866844b8ea2604b5fc3326fa.tar.gz
fix chef_client_scheduled_task splay to accept 0
The description says that it accepts 0-x but code only allowed greater than 0
-rw-r--r--lib/chef/resource/chef_client_scheduled_task.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/chef_client_scheduled_task.rb b/lib/chef/resource/chef_client_scheduled_task.rb
index 422881deb8..f04598cdc6 100644
--- a/lib/chef/resource/chef_client_scheduled_task.rb
+++ b/lib/chef/resource/chef_client_scheduled_task.rb
@@ -107,7 +107,7 @@ class Chef
property :splay, [Integer, String],
coerce: proc { |x| Integer(x) },
- callbacks: { "should be a positive number" => proc { |v| v > 0 } },
+ callbacks: { "should be a positive number" => proc { |v| v >= 0 } },
description: "A random number of seconds between 0 and X to add to interval so that all #{ChefUtils::Dist::Infra::CLIENT} commands don't execute at the same time.",
default: 300