mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-06 10:40:36 -07:00
change deprecated parameter pw and db (#116)
* change deprecated parameter pw to password * change deprecated parameter db to database * add changelog fragment
This commit is contained in:
parent
bd86e249d0
commit
2254b29178
2 changed files with 4 additions and 2 deletions
|
@ -0,0 +1,2 @@
|
||||||
|
minor_changes:
|
||||||
|
- mysql module utils - change deprecated connection parameters ``passwd`` and ``db`` to ``password`` and ``database`` (https://github.com/ansible-collections/community.mysql/pull/116).
|
|
@ -79,7 +79,7 @@ def mysql_connect(module, login_user=None, login_password=None, config_file='',
|
||||||
if login_user is not None:
|
if login_user is not None:
|
||||||
config['user'] = login_user
|
config['user'] = login_user
|
||||||
if login_password is not None:
|
if login_password is not None:
|
||||||
config['passwd'] = login_password
|
config['password'] = login_password
|
||||||
if ssl_cert is not None:
|
if ssl_cert is not None:
|
||||||
config['ssl']['cert'] = ssl_cert
|
config['ssl']['cert'] = ssl_cert
|
||||||
if ssl_key is not None:
|
if ssl_key is not None:
|
||||||
|
@ -87,7 +87,7 @@ def mysql_connect(module, login_user=None, login_password=None, config_file='',
|
||||||
if ssl_ca is not None:
|
if ssl_ca is not None:
|
||||||
config['ssl']['ca'] = ssl_ca
|
config['ssl']['ca'] = ssl_ca
|
||||||
if db is not None:
|
if db is not None:
|
||||||
config['db'] = db
|
config['database'] = db
|
||||||
if connect_timeout is not None:
|
if connect_timeout is not None:
|
||||||
config['connect_timeout'] = connect_timeout
|
config['connect_timeout'] = connect_timeout
|
||||||
if check_hostname is not None:
|
if check_hostname is not None:
|
||||||
|
|
Loading…
Add table
Reference in a new issue