summaryrefslogtreecommitdiff
path: root/lib/chef/util
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2015-07-30 08:14:04 -0700
committerJay Mundrawala <jdmundrawala@gmail.com>2015-07-30 08:14:04 -0700
commit5ef30650fd8e0657f56278a7173b3a5f742d93a5 (patch)
tree9f47cd160b05f0159020ca5bfa1cf6819f2154c6 /lib/chef/util
parentb712f13d2f24dfdcb5c2782fcd17c3e864aaee43 (diff)
downloadchef-5ef30650fd8e0657f56278a7173b3a5f742d93a5.tar.gz
FFYify NetLocalGroupDelMembers
Diffstat (limited to 'lib/chef/util')
-rw-r--r--lib/chef/util/windows/net_group.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/chef/util/windows/net_group.rb b/lib/chef/util/windows/net_group.rb
index f90ff63ff7..10d01edc90 100644
--- a/lib/chef/util/windows/net_group.rb
+++ b/lib/chef/util/windows/net_group.rb
@@ -80,7 +80,12 @@ class Chef::Util::Windows::NetGroup < Chef::Util::Windows
end
def local_delete_members(members)
- modify_members(members, NetLocalGroupDelMembers)
+ begin
+ Chef::ReservedNames::Win32::NetUser::net_local_group_del_members(nil, @groupname, members)
+ rescue Chef::Exceptions::Win32NetAPIError => e
+ raise ArgumentError, e.msg
+ end
+
end
def local_delete