From aa7c5be84afc17dd9d90f58f20e063b1dba2de8e Mon Sep 17 00:00:00 2001 From: William Welter Date: Tue, 16 Jan 2024 13:49:53 +0000 Subject: [PATCH] Fix sanity checks --- plugins/module_utils/mysql.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/module_utils/mysql.py b/plugins/module_utils/mysql.py index d0048bf..3c91afe 100644 --- a/plugins/module_utils/mysql.py +++ b/plugins/module_utils/mysql.py @@ -206,12 +206,14 @@ def get_server_version(cursor): return version_str + def get_server_implementation(cursor): if 'mariadb' in get_server_version(cursor).lower(): return "mariadb" else: return "mysql" + def is_mariadb(implementation): if implementation == "mariadb": return True @@ -224,6 +226,7 @@ def is_mysql(implementation): else: return False + def set_session_vars(module, cursor, session_vars): """Set session vars.""" for var, value in session_vars.items():