From 4f42e752e65d7ab2e4fbd1255ce2290753649c81 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 --- lib/ansible/modules/database/mysql/mysql_user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/database/mysql/mysql_user.py b/lib/ansible/modules/database/mysql/mysql_user.py index 972188f4aac..4adde9e6476 100644 --- a/lib/ansible/modules/database/mysql/mysql_user.py +++ b/lib/ansible/modules/database/mysql/mysql_user.py @@ -184,7 +184,7 @@ class InvalidPrivsError(Exception): # MySQL module specific support methods. # -def connect(module, login_user, login_password, config_file='~/.my.cnf'): +def connect(module, login_user=None, login_password=None, config_file='~/.my.cnf'): config = { 'host': module.params['login_host'], 'db': 'mysql'