From c3f122fb6afa8ac339765b18fa99d7255fb42418 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Tue, 26 Mar 2013 22:04:04 -0400 Subject: [PATCH] now check moded returnes 'changed' instead of failure when there are modifications needed. Signed-off-by: Brian Coca --- user | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user b/user index 1511b3aca41..64a3a2ede14 100644 --- a/user +++ b/user @@ -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)