mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-08-21 21:41:46 -07:00
Fix sanity
This commit is contained in:
parent
189f46692d
commit
0f4b116d8b
5 changed files with 3 additions and 6 deletions
|
@ -84,7 +84,7 @@ def mysql_connect(module, login_user=None, login_password=None, config_file='',
|
|||
config['ssl']['check_hostname'] = check_hostname
|
||||
|
||||
db_connection = mysql_driver.connect(autocommit=autocommit, **config)
|
||||
|
||||
|
||||
# Monkey patch the Connection class to close the connection when garbage collected
|
||||
def _conn_patch(conn_self):
|
||||
conn_self.close()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue