Skip to content

Commit

Permalink
fix undefined variable
Browse files Browse the repository at this point in the history
  • Loading branch information
laurent-indermuehle committed Sep 15, 2023
1 parent c3fc8f2 commit a44b20b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/modules/mysql_role.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a44b20b

Please sign in to comment.