Skip to content

Commit

Permalink
fix connection arguments mysql driver compatability (ansible-collecti…
Browse files Browse the repository at this point in the history
…ons#551)

* only use the "database" connection argument with driver versions where "db" is deprecated/removed

* connection arguments: fix KeyError

* connection arguments: fix KeyError

* connection arguments: use 'passwd' instead of 'password' with older drivers

* add changelog fragment

* refactoring: use "get_connector_name" in "mysql_connect"

---------

Co-authored-by: Felix Hamme <[email protected]>
  • Loading branch information
2 people authored and laurent-indermuehle committed Oct 3, 2023
1 parent 2ca96da commit c33ea16
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- mysql module utils - use the connection arguments ``db`` instead of ``database`` and ``passwd`` instead of ``password`` when running with older mysql drivers (MySQLdb < 2.1.0 or PyMySQL < 1.0.0) (https://github.com/ansible-collections/community.mysql/pull/551).

0 comments on commit c33ea16

Please sign in to comment.