1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

in order for replication setup to work, some errors should be ignored

This commit is contained in:
Kenny Gryp 2015-11-09 10:05:53 +01:00 committed by Matt Clay
parent 4e401fc4e6
commit c766cbd98a

View file

@ -308,7 +308,7 @@ def main():
if not mysqldb_found: if not mysqldb_found:
module.fail_json(msg="the python mysqldb module is required") module.fail_json(msg="the python mysqldb module is required")
else: else:
warnings.filterwarnings('error', category=MySQLdb.Warning) warnings.filterwarnings('ignore', category=MySQLdb.Warning)
# Either the caller passes both a username and password with which to connect to # Either the caller passes both a username and password with which to connect to
# mysql, or they pass neither and allow this module to read the credentials from # mysql, or they pass neither and allow this module to read the credentials from