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

pull/5192/head
jeromew 11 years ago
parent 364ad44db3
commit 1916e8ec90

@ -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)

Loading…
Cancel
Save