From 83d79f625775ab12ef7b83ac5d6cb4e16cc06fbd Mon Sep 17 00:00:00 2001 From: Jean-Francois Chevrette Date: Thu, 1 May 2014 16:54:31 -0400 Subject: [PATCH] this should return 0 to indicate a non-failure when check_mode is True --- library/system/group | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/system/group b/library/system/group index 7aaf7ed2b44..6b401d077e6 100644 --- a/library/system/group +++ b/library/system/group @@ -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)