1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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

This commit is contained in:
jeromew 2013-12-05 17:07:24 -05:00
parent 364ad44db3
commit 1916e8ec90

View file

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