mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02: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:
parent
868af1a892
commit
5ad3c0603d
1 changed files with 1 additions and 1 deletions
|
@ -367,7 +367,7 @@ class User(object):
|
||||||
if len(cmd) == 1:
|
if len(cmd) == 1:
|
||||||
return (None, '', '')
|
return (None, '', '')
|
||||||
elif self.module.check_mode:
|
elif self.module.check_mode:
|
||||||
return (True, '', '')
|
return (0, '', '')
|
||||||
|
|
||||||
cmd.append(self.name)
|
cmd.append(self.name)
|
||||||
return self.execute_command(cmd)
|
return self.execute_command(cmd)
|
||||||
|
|
Loading…
Reference in a new issue