mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-19 17:01:26 -07:00
[stable-2] Backports (#324)
* Clarified error message about missing python modules (#279) * Clarified error message about missing python modules, and tweak documentation to suggest overriding interpreter. * Mention mysqlclient as another option * Correct mysqlclient suggestions from python2 to python3 Co-authored-by: Matthew Exon <git.mexon@spamgourmet.com> (cherry picked from commit82baf7508c
) * Copy ignore-2.13.txt to ignore-2.14.txt (#323) * Copy ignore-2.13.txt to ignore-2.14.txt * Fix sanity (cherry picked from commitc16b2428e8
) Co-authored-by: Matthew Exon <github2.mexon@neverbox.com>
This commit is contained in:
parent
74ab876064
commit
2de30ed7cb
3 changed files with 19 additions and 5 deletions
|
@ -29,7 +29,10 @@ except ImportError:
|
|||
except ImportError:
|
||||
mysql_driver = None
|
||||
|
||||
mysql_driver_fail_msg = 'The PyMySQL (Python 2.7 and Python 3.X) or MySQL-python (Python 2.X) module is required.'
|
||||
mysql_driver_fail_msg = ('A MySQL module is required: for Python 2.7 either PyMySQL, or '
|
||||
'MySQL-python, or for Python 3.X mysqlclient or PyMySQL. '
|
||||
'Consider setting ansible_python_interpreter to use '
|
||||
'the intended Python version.')
|
||||
|
||||
|
||||
def parse_from_mysql_config_file(cnf):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue