diff options
author | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-07-30 08:14:04 -0700 |
---|---|---|
committer | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-07-30 08:14:04 -0700 |
commit | 5ef30650fd8e0657f56278a7173b3a5f742d93a5 (patch) | |
tree | 9f47cd160b05f0159020ca5bfa1cf6819f2154c6 /lib/chef/util | |
parent | b712f13d2f24dfdcb5c2782fcd17c3e864aaee43 (diff) | |
download | chef-5ef30650fd8e0657f56278a7173b3a5f742d93a5.tar.gz |
FFYify NetLocalGroupDelMembers
Diffstat (limited to 'lib/chef/util')
-rw-r--r-- | lib/chef/util/windows/net_group.rb | 7 |
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
|