summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2020-06-18 14:49:57 -0700
committerGitHub <noreply@github.com>2020-06-18 14:49:57 -0700
commitcc98f589221993737ab5e4eb487e707ce0859dc1 (patch)
treee6bafeddfa734e69f7b3f4166a969d2cdb740e01
parent9230b00dd39481728576254f52d35424c0c40eb2 (diff)
parent38bf6fdd9916db2cb222bf4ca0687a12b1801aaa (diff)
downloadchef-cc98f589221993737ab5e4eb487e707ce0859dc1.tar.gz
Merge pull request #10018 from chef-davin/master
windows_security_policy was using resource_name instead of provides
-rw-r--r--kitchen-tests/cookbooks/end_to_end/recipes/windows.rb5
-rw-r--r--lib/chef/resource/windows_security_policy.rb2
2 files changed, 6 insertions, 1 deletions
diff --git a/kitchen-tests/cookbooks/end_to_end/recipes/windows.rb b/kitchen-tests/cookbooks/end_to_end/recipes/windows.rb
index 2d228badfb..22f78db319 100644
--- a/kitchen-tests/cookbooks/end_to_end/recipes/windows.rb
+++ b/kitchen-tests/cookbooks/end_to_end/recipes/windows.rb
@@ -27,6 +27,11 @@ timezone "UTC"
include_recipe "ntp"
+windows_security_policy "EnableGuestAccount" do
+ secoption "EnableGuestAccount"
+ secvalue "1"
+end
+
users_manage "remove sysadmin" do
group_name "sysadmin"
group_id 2300
diff --git a/lib/chef/resource/windows_security_policy.rb b/lib/chef/resource/windows_security_policy.rb
index 652ef74f98..4fd38807de 100644
--- a/lib/chef/resource/windows_security_policy.rb
+++ b/lib/chef/resource/windows_security_policy.rb
@@ -21,7 +21,7 @@ require_relative "../resource"
class Chef
class Resource
class WindowsSecurityPolicy < Chef::Resource
- resource_name :windows_security_policy
+ provides :windows_security_policy
# The valid policy_names options found here
# https://github.com/ChrisAWalker/cSecurityOptions under 'AccountSettings'