Correct mysqlclient suggestions from python2 to python3

This commit is contained in:
Matthew Exon 2022-04-01 08:58:57 +08:00
commit 16e0e21cd5
2 changed files with 3 additions and 3 deletions

View file

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

View file

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