From c766cbd98a7dcf887769c3651a95ea8d9bf70723 Mon Sep 17 00:00:00 2001 From: Kenny Gryp Date: Mon, 9 Nov 2015 10:05:53 +0100 Subject: [PATCH] in order for replication setup to work, some errors should be ignored --- lib/ansible/modules/extras/database/mysql/mysql_replication.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/database/mysql/mysql_replication.py b/lib/ansible/modules/extras/database/mysql/mysql_replication.py index 18df690ff01..d514a86b181 100644 --- a/lib/ansible/modules/extras/database/mysql/mysql_replication.py +++ b/lib/ansible/modules/extras/database/mysql/mysql_replication.py @@ -308,7 +308,7 @@ def main(): if not mysqldb_found: module.fail_json(msg="the python mysqldb module is required") 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 # mysql, or they pass neither and allow this module to read the credentials from