mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-25 03:41:26 -07:00
Fix wrong impl for mysql (#210)
If 'mariadb' in version info, the db instance should be mariadb(reverse in code) rather than mysql.
(cherry picked from commit 663590689f
)
This commit is contained in:
parent
0c462c84ff
commit
b2658a7ebd
1 changed files with 4 additions and 4 deletions
|
@ -859,8 +859,8 @@ def get_impl(cursor):
|
||||||
global impl
|
global impl
|
||||||
cursor.execute("SELECT VERSION()")
|
cursor.execute("SELECT VERSION()")
|
||||||
if 'mariadb' in cursor.fetchone()[0].lower():
|
if 'mariadb' in cursor.fetchone()[0].lower():
|
||||||
from ansible_collections.community.mysql.plugins.module_utils.implementations.mariadb import user as mysqluser
|
from ansible_collections.community.mysql.plugins.module_utils.implementations.mariadb import user as mariauser
|
||||||
impl = mysqluser
|
|
||||||
else:
|
|
||||||
from ansible_collections.community.mysql.plugins.module_utils.implementations.mysql import user as mariauser
|
|
||||||
impl = mariauser
|
impl = mariauser
|
||||||
|
else:
|
||||||
|
from ansible_collections.community.mysql.plugins.module_utils.implementations.mysql import user as mysqluser
|
||||||
|
impl = mysqluser
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue