From a44b20b1dbd4cf97f20ff3acf479290270ac6e1d Mon Sep 17 00:00:00 2001 From: Laurent Indermuehle Date: Fri, 15 Sep 2023 16:30:10 +0200 Subject: [PATCH] fix undefined variable --- plugins/modules/mysql_role.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/mysql_role.py b/plugins/modules/mysql_role.py index da26fbc4..4d1d620e 100644 --- a/plugins/modules/mysql_role.py +++ b/plugins/modules/mysql_role.py @@ -396,7 +396,7 @@ def get_implementation(self): Returns: library: Depending on a server type (MySQL or MariaDB). """ - if get_server_type(cursor) == 'mariadb': + if get_server_type(self.cursor) == 'mariadb': import ansible_collections.community.mysql.plugins.module_utils.implementations.mariadb.role as role_impl else: import ansible_collections.community.mysql.plugins.module_utils.implementations.mysql.role as role_impl