diff options
author | Davin Taddeo <davin@chef.io> | 2020-12-21 08:39:17 -0500 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2021-09-17 08:27:34 -0700 |
commit | e7a093458db3752b93f743b7e53c4f9c17717c33 (patch) | |
tree | 3516e6968878b4c98c206d3c9f8a6a93d29a939c | |
parent | 7a5e4c3f343141ac09896d3406292f5c309c8673 (diff) | |
download | chef-e7a093458db3752b93f743b7e53c4f9c17717c33.tar.gz |
fixing a chefstyle error
Signed-off-by: Davin Taddeo <davin@chef.io>
-rw-r--r-- | lib/chef/resource/windows_security_policy.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/resource/windows_security_policy.rb b/lib/chef/resource/windows_security_policy.rb index b6ee727c67..aa9266a539 100644 --- a/lib/chef/resource/windows_security_policy.rb +++ b/lib/chef/resource/windows_security_policy.rb @@ -97,6 +97,7 @@ class Chef if (desired.secoption == "ResetLockoutCount" || desired.secoption == "LockoutDuration") && current_state["LockoutBadCount"] == "0" raise Chef::Exceptions::ValidationFailed, "#{desired.secoption} cannot be set unless the \"LockoutBadCount\" security policy has been set to a non-zero value" end + secvalue current_state[desired.secoption.to_s] end |