mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-26 20:31:28 -07:00
Fix cursor lookup
This commit is contained in:
parent
4b08069061
commit
6e175d8166
1 changed files with 1 additions and 1 deletions
|
@ -485,7 +485,7 @@ def main():
|
||||||
module.fail_json(msg="unable to find %s. Exception message: %s" % (config_file, to_native(e)))
|
module.fail_json(msg="unable to find %s. Exception message: %s" % (config_file, to_native(e)))
|
||||||
|
|
||||||
cursor.execute("SELECT VERSION()")
|
cursor.execute("SELECT VERSION()")
|
||||||
if 'mariadb' in cursor.fetchone()[0].lower():
|
if 'mariadb' in cursor.fetchone()["VERSION()"].lower():
|
||||||
from ansible_collections.community.mysql.plugins.module_utils.implementations.mariadb import replication as impl
|
from ansible_collections.community.mysql.plugins.module_utils.implementations.mariadb import replication as impl
|
||||||
else:
|
else:
|
||||||
from ansible_collections.community.mysql.plugins.module_utils.implementations.mysql import replication as impl
|
from ansible_collections.community.mysql.plugins.module_utils.implementations.mysql import replication as impl
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue