mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
* Fix for "AttributeError: 'module' object has no attribute 'cursors'" (#49191) (#1) * Fix for "AttributeError: 'module' object has no attribute 'cursors'" (#49191) * Adding changelog fragment for issue #49191 and the following PR. * Update lib/ansible/module_utils/mysql.py Co-Authored-By: timorunge <timorunge@users.noreply.github.com>
This commit is contained in:
committed by
John R Barker
parent
36baf7d83a
commit
b45b599433
@@ -35,6 +35,7 @@ try:
|
||||
except ImportError:
|
||||
try:
|
||||
import MySQLdb as mysql_driver
|
||||
import MySQLdb.cursors
|
||||
_mysql_cursor_param = 'cursorclass'
|
||||
except ImportError:
|
||||
mysql_driver = None
|
||||
|
||||
Reference in New Issue
Block a user