Commit 1916e8ec by jeromew

user module: force= and remove= should not be mutually exclusive

parent 364ad44d
...@@ -259,7 +259,7 @@ class User(object): ...@@ -259,7 +259,7 @@ class User(object):
cmd = [self.module.get_bin_path('userdel', True)] cmd = [self.module.get_bin_path('userdel', True)]
if self.force: if self.force:
cmd.append('-f') cmd.append('-f')
elif self.remove: if self.remove:
cmd.append('-r') cmd.append('-r')
cmd.append(self.name) cmd.append(self.name)
......
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