diff options
author | Stuart Preston <stuart@chef.io> | 2018-11-20 12:11:22 +0000 |
---|---|---|
committer | Stuart Preston <stuart@chef.io> | 2018-11-20 12:11:22 +0000 |
commit | 10fb4f33e6087df0910b3f51019d74e173468af5 (patch) | |
tree | bc1da346130fb500951089d61a3a483fb2c4253d | |
parent | b631df7190f949218aa0b30c2aeed6350dce7b00 (diff) | |
download | chef-sp/arrayofaccounts.tar.gz |
Accounts to be revoked should be provided as an individually quoted string arraysp/arrayofaccounts
Signed-off-by: Stuart Preston <stuart@chef.io>
-rw-r--r-- | lib/chef/resource/windows_share.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/windows_share.rb b/lib/chef/resource/windows_share.rb index 50fd1c3ca9..48fcc9b946 100644 --- a/lib/chef/resource/windows_share.rb +++ b/lib/chef/resource/windows_share.rb @@ -303,7 +303,7 @@ class Chef # revoke user permissions from a share # @param [Array] users def revoke_user_permissions(users) - revoke_command = "Revoke-SmbShareAccess -Name '#{new_resource.share_name}' -AccountName \"#{users.join(',')}\" -Force" + revoke_command = "Revoke-SmbShareAccess -Name '#{new_resource.share_name}' -AccountName \"#{users.join('","')}\" -Force" Chef::Log.debug("Running '#{revoke_command}' to revoke share permissions") powershell_out!(revoke_command) end |