summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerdar Sutay <serdar@opscode.com>2014-10-28 18:20:28 -0700
committerSerdar Sutay <serdar@opscode.com>2014-10-28 18:37:31 -0700
commit2bf5e6a6e16d0c7f7bdfe029f61b240d163ea95e (patch)
tree0c88a34d88bb620a38a61f77cee62d9ccafd11a4
parent7c1c1568c10a43162007ec4552ce9168133faa93 (diff)
downloadchef-2bf5e6a6e16d0c7f7bdfe029f61b240d163ea95e.tar.gz
Updates based on the PR comments.
-rw-r--r--lib/chef/provider/group/pw.rb10
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