From b038683db6dfed83a4f1a8c0f1d804e445e6adc7 Mon Sep 17 00:00:00 2001 From: hubiongithub <79990207+hubiongithub@users.noreply.github.com> Date: Mon, 9 Sep 2024 11:23:02 +0200 Subject: [PATCH] Update plugins/module_utils/user.py Co-authored-by: Andrew Klychkov --- plugins/module_utils/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/module_utils/user.py b/plugins/module_utils/user.py index 7b34e64..af2d7bd 100644 --- a/plugins/module_utils/user.py +++ b/plugins/module_utils/user.py @@ -214,7 +214,7 @@ def user_add(cursor, user, host, host_all, password, encrypted, # Mysql and MariaDB differ in naming pam plugin and Syntax to set it if plugin == 'pam': # Used by MariaDB which requires the USING keyword, not BY query_with_args = "CREATE USER %s@%s IDENTIFIED WITH %s USING %s", (user, host, plugin, plugin_auth_string) - elif plugin in ('ed25519'): # Used by MariaDB which requires the USING keyword, not BY + elif plugin == 'ed25519': # Used by MariaDB which requires the USING keyword, not BY query_with_args = "CREATE USER %s@%s IDENTIFIED WITH %s USING PASSWORD(%s)", (user, host, plugin, plugin_auth_string) elif salt: if plugin in ['caching_sha2_password', 'sha256_password']: