mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
now check moded returnes 'changed' instead of failure when there are
modifications needed. Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
This commit is contained in:
@@ -367,7 +367,7 @@ class User(object):
|
||||
if len(cmd) == 1:
|
||||
return (None, '', '')
|
||||
elif self.module.check_mode:
|
||||
return (True, '', '')
|
||||
return (0, '', '')
|
||||
|
||||
cmd.append(self.name)
|
||||
return self.execute_command(cmd)
|
||||
|
||||
Reference in New Issue
Block a user