mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-08-31 10:21:47 -07:00
Correct mysqlclient suggestions from python2 to python3
This commit is contained in:
parent
472bdb60b8
commit
16e0e21cd5
2 changed files with 3 additions and 3 deletions
|
@ -81,8 +81,8 @@ notes:
|
|||
for newer versions of Fedora; see M(ansible.builtin.dnf).
|
||||
- Be sure you have mysqlclient, PyMySQL, or MySQLdb library installed on the target machine
|
||||
for the Python interpreter Ansible discovers. For example if ansible discovers and uses Python 3, you need to install
|
||||
the Python 3 version of PyMySQL. If ansible discovers and uses Python 2, you need to install the Python 2 version
|
||||
of either PyMySQL or MySQL-python.
|
||||
the Python 3 version of PyMySQL or mysqlclient. If ansible discovers and uses Python 2, you need to install the Python 2
|
||||
version of either PyMySQL or MySQL-python.
|
||||
- If you have trouble, it may help to force Ansible to use the Python interpreter you need by specifying
|
||||
C(ansible_python_interpreter). For more information, see
|
||||
U(https://docs.ansible.com/ansible/latest/reference_appendices/interpreter_discovery.html).
|
||||
|
|
|
@ -29,7 +29,7 @@ except ImportError:
|
|||
except ImportError:
|
||||
mysql_driver = None
|
||||
|
||||
mysql_driver_fail_msg = 'A MySQL module is required: for Python 2.7 either mysqlclient, PyMySQL, or MySQL-python, or for Python 3.X mysqlclient or PyMySQL. Consider setting ansible_python_interpreter to use the intended Python version.'
|
||||
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