Fix sanity

This commit is contained in:
Laurent Indermuehle 2024-06-07 15:22:17 +02:00
commit 0f4b116d8b
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09
5 changed files with 3 additions and 6 deletions

View file

@ -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()