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:
parent
364ad44db3
commit
1916e8ec90
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue