From 5ad3c0603d1248e74d6a94642b99f18ded913f51 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 --- library/user | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/user b/library/user index 1511b3aca41..64a3a2ede14 100644 --- a/library/user +++ b/library/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)