diff options
author | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-07-30 08:11:06 -0700 |
---|---|---|
committer | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-07-30 08:11:06 -0700 |
commit | b712f13d2f24dfdcb5c2782fcd17c3e864aaee43 (patch) | |
tree | 3b658e406c2c59e6861010b136df528893774453 /lib/chef/util | |
parent | f1ca00c684cb06b0792a71579526a508e5ecb408 (diff) | |
download | chef-b712f13d2f24dfdcb5c2782fcd17c3e864aaee43.tar.gz |
FFYify NetLocalGroupSetMembers
Diffstat (limited to 'lib/chef/util')
-rw-r--r-- | lib/chef/util/windows/net_group.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/chef/util/windows/net_group.rb b/lib/chef/util/windows/net_group.rb index f9acf783cc..f90ff63ff7 100644 --- a/lib/chef/util/windows/net_group.rb +++ b/lib/chef/util/windows/net_group.rb @@ -64,7 +64,11 @@ class Chef::Util::Windows::NetGroup < Chef::Util::Windows end
def local_set_members(members)
- modify_members(members, NetLocalGroupSetMembers)
+ begin
+ Chef::ReservedNames::Win32::NetUser::net_local_group_set_members(nil, @groupname, members)
+ rescue Chef::Exceptions::Win32NetAPIError => e
+ raise ArgumentError, e.msg
+ end
end
def local_add_members(members)
|