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

this should return 0 to indicate a non-failure when check_mode is True

This commit is contained in:
Jean-Francois Chevrette 2014-05-01 16:54:31 -04:00
parent 51dfd18e1f
commit 83d79f6257

View file

@ -121,7 +121,7 @@ class Group(object):
if len(cmd) == 1:
return (None, '', '')
if self.module.check_mode:
return (True, '', '')
return (0, '', '')
cmd.append(self.name)
return self.execute_command(cmd)