Skip to content

Commit

Permalink
[CHEF-1767] chgroup requires at least one 'attr=value' pair
Browse files Browse the repository at this point in the history
  • Loading branch information
dougm authored and danielsdeleo committed Mar 18, 2011
1 parent c65ebc0 commit b4684d3
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions chef/lib/chef/provider/group/aix.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,19 @@ def required_binaries

def create_group
command = "mkgroup"
command << set_options
command << set_options << " #{@new_resource.group_name}"
run_command(:command => command)
modify_group_members
end

def manage_group
command = "chgroup"
command << set_options
run_command(:command => command)
options = set_options
#Usage: chgroup [-R load_module] "attr=value" ... group
if options.size > 0
command << options << " #{@new_resource.group_name}"
run_command(:command => command)
end
modify_group_members
end

Expand All @@ -57,7 +61,7 @@ def set_options
end
end
end
opts << " #{@new_resource.group_name}"
opts
end

end
Expand Down

0 comments on commit b4684d3

Please sign in to comment.