mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 19:31:26 -07:00
Improve error messages when MySQLdb is not installed (#27871)
The python package is called MySQL-python in pypi, and reporting this rather than mysqldb makes resolving the problem far easier.
This commit is contained in:
parent
babec35faa
commit
dbf9a65c05
4 changed files with 4 additions and 4 deletions
|
@ -243,7 +243,7 @@ def main():
|
|||
config_file = module.params['config_file']
|
||||
|
||||
if not mysqldb_found:
|
||||
module.fail_json(msg="the python mysqldb module is required")
|
||||
module.fail_json(msg="The MySQL-python module is required.")
|
||||
else:
|
||||
warnings.filterwarnings('error', category=MySQLdb.Warning)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue