diff --git a/chef/lib/chef/provider/group/aix.rb b/chef/lib/chef/provider/group/aix.rb index 163461d6f03..14318671b44 100644 --- a/chef/lib/chef/provider/group/aix.rb +++ b/chef/lib/chef/provider/group/aix.rb @@ -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 @@ -57,7 +61,7 @@ def set_options end end end - opts << " #{@new_resource.group_name}" + opts end end