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