diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-04-26 20:53:09 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-04-26 20:54:57 -0700 |
commit | e3bf6b394257a7798ed5225c907ee0adb5b06784 (patch) | |
tree | f43ca4703e6978d3d4babd124865e89e4e18e1f5 | |
parent | 3e774a6bc7e7d65231d4b45753cc0404189a5359 (diff) | |
download | chef-share.tar.gz |
Remove the Windows version check in windows_shareshare
This was keeping this resource from working on Windows 8 / Windows
2012 which are 6.2. This works on all the versions of Windows we support
so there's no need to check this anymore.
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | lib/chef/resource/windows_share.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/chef/resource/windows_share.rb b/lib/chef/resource/windows_share.rb index c2689fe26d..6c29a6443d 100644 --- a/lib/chef/resource/windows_share.rb +++ b/lib/chef/resource/windows_share.rb @@ -145,12 +145,8 @@ class Chef read_users r_users end - def after_created - raise "The windows_share resource relies on PowerShell cmdlets not present in Windows releases prior to 8/2012. Cannot continue!" if node["platform_version"].to_f < 6.3 - end - -# given the string output of Get-SmbShareAccess parse out -# arrays of full access users, change users, and read only users + # given the string output of Get-SmbShareAccess parse out + # arrays of full access users, change users, and read only users def parse_permissions(results_string) json_results = Chef::JSONCompat.from_json(results_string) json_results = [json_results] unless json_results.is_a?(Array) # single result is not an array |