Skip to content

Commit

Permalink
Fix issue by using dict attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
wfelipew committed Jan 4, 2024
1 parent b2072a2 commit db4c50e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/modules/mysql_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ def main():
module.fail_json(msg)

cursor.execute("SELECT VERSION()")
if 'mariadb' in cursor.fetchone()[0].lower():
if 'mariadb' in cursor.fetchone()["VERSION()"].lower():
server_implementation = "mariadb"
else:
server_implementation = "mysql"
Expand Down

0 comments on commit db4c50e

Please sign in to comment.