From db4c50e64c7b260f25f8b25ca3befecf3bc147ff Mon Sep 17 00:00:00 2001 From: William Welter Date: Thu, 4 Jan 2024 17:26:44 +0000 Subject: [PATCH] Fix issue by using dict attribute --- plugins/modules/mysql_info.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/mysql_info.py b/plugins/modules/mysql_info.py index 15ed0d5..10f9dcf 100644 --- a/plugins/modules/mysql_info.py +++ b/plugins/modules/mysql_info.py @@ -756,7 +756,7 @@ def main(): module.fail_json(msg) cursor.execute("SELECT VERSION()") - if 'mariadb' in cursor.fetchone()[0].lower(): + if 'mariadb' in cursor.fetchone()["VERSION()"].lower(): server_implementation = "mariadb" else: server_implementation = "mysql"