From 63e9de317000712a4ec707b80d3a17777e9db347 Mon Sep 17 00:00:00 2001 From: David Hummel Date: Sat, 14 Feb 2015 17:16:35 -0500 Subject: [PATCH] Fix issue #793: mysql_db: for state={absent,present} connections to database mysql fail for users other than root --- lib/ansible/modules/database/mysql/mysql_db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/database/mysql/mysql_db.py b/lib/ansible/modules/database/mysql/mysql_db.py index a62243206ec..7541683401e 100644 --- a/lib/ansible/modules/database/mysql/mysql_db.py +++ b/lib/ansible/modules/database/mysql/mysql_db.py @@ -312,7 +312,7 @@ def main(): module.fail_json(msg="with state=%s target is required" % (state)) connect_to_db = db else: - connect_to_db = 'mysql' + connect_to_db = '' try: if socket: try: