diff options
author | Serdar Sutay <serdar@opscode.com> | 2014-10-28 18:20:28 -0700 |
---|---|---|
committer | Serdar Sutay <serdar@opscode.com> | 2014-10-28 18:37:31 -0700 |
commit | 2bf5e6a6e16d0c7f7bdfe029f61b240d163ea95e (patch) | |
tree | 0c88a34d88bb620a38a61f77cee62d9ccafd11a4 /lib/chef/provider/group | |
parent | 7c1c1568c10a43162007ec4552ce9168133faa93 (diff) | |
download | chef-2bf5e6a6e16d0c7f7bdfe029f61b240d163ea95e.tar.gz |
Updates based on the PR comments.
Diffstat (limited to 'lib/chef/provider/group')
-rw-r--r-- | lib/chef/provider/group/pw.rb | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/chef/provider/group/pw.rb b/lib/chef/provider/group/pw.rb index 048ba60bf6..7a66ab4d69 100644 --- a/lib/chef/provider/group/pw.rb +++ b/lib/chef/provider/group/pw.rb @@ -46,14 +46,10 @@ class Chef # and -d options used by manage_group, we treat group creation as a # special case and use -M. Chef::Log.debug("#{@new_resource} setting group members: #{@new_resource.members.join(',')}") - member_options = [" -M #{@new_resource.members.join(',')}"] - - member_options.each do |option| - run_command(:command => command + option) - end - else - run_command(:command => command) + command += " -M #{@new_resource.members.join(',')}" end + + run_command(:command => command) end # Manage the group when it already exists |