From 8e326e10ff7f6ba429bbc747814a79e3b785e92c Mon Sep 17 00:00:00 2001 From: Lee H Date: Thu, 14 Jan 2016 08:53:22 -0500 Subject: [PATCH] - fix check_mode test to avoid errors - correct test mode check to ensure it returns and doesnt apply changes (via jmainguy) --- database/mysql/mysql_user.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database/mysql/mysql_user.py b/database/mysql/mysql_user.py index 982836a0bcd..755ed5bc888 100644 --- a/database/mysql/mysql_user.py +++ b/database/mysql/mysql_user.py @@ -326,8 +326,8 @@ def user_mod(cursor, user, host, host_all, password, encrypted, new_priv, append return changed def user_delete(cursor, user, host, host_all, check_mode): - if module.check_mode: - changed = True + if check_mode: + return True if host_all: hostnames = user_get_hostnames(cursor, user)