From 30fc6f03d67e39caacd0b3e2753feb5fc55eab38 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Thu, 30 Apr 2015 12:49:32 -0700 Subject: [PATCH] Allow playbook specified login_user and login_password to override config file settings --- database/mysql/mysql_user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/mysql/mysql_user.py b/database/mysql/mysql_user.py index 97150775507..286983b38d7 100644 --- a/database/mysql/mysql_user.py +++ b/database/mysql/mysql_user.py @@ -183,7 +183,7 @@ class InvalidPrivsError(Exception): # MySQL module specific support methods. # -def connect(module, login_user=None, login_password=None, config_file=''): +def connect(module, login_user=None, login_password=None, config_file='~/.my.cnf'): config = { 'host': module.params['login_host'], 'db': 'mysql'