summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-04-27 12:59:08 -0700
committerTim Smith <tsmith@chef.io>2018-04-27 12:59:08 -0700
commitfd73662ba9cfeca4cc4eace70ce02d72790f2f93 (patch)
tree9f1ec0582b9c0b1e6dd95e0ab38e62d8e9de5e26
parent5c4acd1a0983d30599b828b495b6fe2610c102b3 (diff)
downloadchef-fd73662ba9cfeca4cc4eace70ce02d72790f2f93.tar.gz
Set ignore_error to desired_state false
This avoids Chef reporting that the value has changed from false to true. It's not a state property so we don't want that. Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/resource/sysctl.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/sysctl.rb b/lib/chef/resource/sysctl.rb
index 02d13b0ad7..aab1c055c1 100644
--- a/lib/chef/resource/sysctl.rb
+++ b/lib/chef/resource/sysctl.rb
@@ -38,7 +38,7 @@ class Chef
property :ignore_error, [TrueClass, FalseClass],
description: "Ignore any errors when setting the value on the command line.",
- default: false
+ default: false, desired_state: false
property :value, [Array, String, Integer, Float],
description: "The value to set.",