From 73f200bf4b15e6d3dff38662decd0377cd9713e2 Mon Sep 17 00:00:00 2001 From: Hubertus Krogmann Date: Tue, 13 Sep 2022 15:36:43 +0200 Subject: [PATCH] typo fixed --- plugins/module_utils/user.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/module_utils/user.py b/plugins/module_utils/user.py index c4ecf89..dfd97f0 100644 --- a/plugins/module_utils/user.py +++ b/plugins/module_utils/user.py @@ -171,7 +171,7 @@ def user_add(cursor, user, host, host_all, password, encrypted, query_with_args = "CREATE USER %s@%s IDENTIFIED WITH %s AS %s", (user, host, plugin, plugin_hash_string) elif plugin and plugin_auth_string: # Mysql and MariaDB differ in naming pam plugin - if plugin = 'pam' or plugin = 'auth_pam': + if plugin == 'pam' or plugin == 'auth_pam': query_with_args = "CREATE USER %s@%s IDENTIFIED WITH %s USING %s", (user, host, plugin, plugin_auth_string) else: query_with_args = "CREATE USER %s@%s IDENTIFIED WITH %s BY %s", (user, host, plugin, plugin_auth_string) @@ -310,7 +310,7 @@ def user_mod(cursor, user, host, host_all, password, encrypted, query_with_args = "ALTER USER %s@%s IDENTIFIED WITH %s AS %s", (user, host, plugin, plugin_hash_string) elif plugin_auth_string: # Mysql and MariaDB differ in naming pam plugin - if plugin = 'pam' or plugin = 'auth_pam': + if plugin == 'pam' or plugin == 'auth_pam': query_with_args = "ALTER USER %s@%s IDENTIFIED WITH %s USING %s", (user, host, plugin, plugin_auth_string) else: query_with_args = "ALTER USER %s@%s IDENTIFIED WITH %s BY %s", (user, host, plugin, plugin_auth_string)