Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 34a300d

Browse files
authored
mysql: revert changes made in PR 116 (ansible-collections#153) (ansible-collections#155)
* mysql: revert changes made in PR 116 * Add changelog fragment * Fix CI * Fix CI * Fix CI * Update CI * Fix CI (cherry picked from commit 738343d)
1 parent d9651f3 commit 34a300d

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/workflows/ansible-test-plugins.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
- stable-2.9
6262
- stable-2.10
6363
- stable-2.11
64-
- devel
64+
#- devel
6565
python:
6666
- 3.6
6767
connector:
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
bugfixes:
2+
- mysql - revert changes of connector arguments made in pull request 116 causing the invalid keyword argument error (https://github.com/ansible-collections/community.mysql/pull/116).

plugins/module_utils/mysql.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,15 @@ def mysql_connect(module, login_user=None, login_password=None, config_file='',
7979
if login_user is not None:
8080
config['user'] = login_user
8181
if login_password is not None:
82-
config['password'] = login_password
82+
config['passwd'] = login_password
8383
if ssl_cert is not None:
8484
config['ssl']['cert'] = ssl_cert
8585
if ssl_key is not None:
8686
config['ssl']['key'] = ssl_key
8787
if ssl_ca is not None:
8888
config['ssl']['ca'] = ssl_ca
8989
if db is not None:
90-
config['database'] = db
90+
config['db'] = db
9191
if connect_timeout is not None:
9292
config['connect_timeout'] = connect_timeout
9393
if check_hostname is not None:

0 commit comments

Comments
 (0)