Commit 39673fe8 by Michael DeHaan

Merge pull request #2940 from madema/patch-3

-o and -r option don't exist on AIX
parents 0938d4d8 58d59c18
......@@ -894,9 +894,6 @@ class AIX(User):
cmd.append('-u')
cmd.append(self.uid)
if self.non_unique:
cmd.append('-o')
if self.group is not None:
if not self.group_exists(self.group):
self.module.fail_json(msg="Group %s does not exist" % self.group)
......@@ -925,9 +922,6 @@ class AIX(User):
if self.createhome:
cmd.append('-m')
if self.system:
cmd.append('-r')
cmd.append(self.name)
(rc, out, err) = self.execute_command(cmd)
......@@ -950,9 +944,6 @@ class AIX(User):
cmd.append('-u')
cmd.append(self.uid)
if self.non_unique:
cmd.append('-o')
if self.group is not None:
if not self.group_exists(self.group):
self.module.fail_json(msg="Group %s does not exist" % self.group)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment