Merge pull request #5192 from jeromew/ansible_user_removal

user module: force= and remove= should not be mutually exclusive
This commit is contained in:
jctanner 2013-12-05 14:21:28 -08:00
commit 66cf819a68

View file

@ -259,7 +259,7 @@ class User(object):
cmd = [self.module.get_bin_path('userdel', True)]
if self.force:
cmd.append('-f')
elif self.remove:
if self.remove:
cmd.append('-r')
cmd.append(self.name)