From ac73822405eebaf50fb94195e4ea315ba5805463 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Wed, 16 Jul 2014 13:39:47 -0500 Subject: [PATCH] Expand target for mysql_db Fixes #8128 --- library/database/mysql_db | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/database/mysql_db b/library/database/mysql_db index 40af38108ff..184c30381c4 100644 --- a/library/database/mysql_db +++ b/library/database/mysql_db @@ -282,6 +282,9 @@ def main(): state = module.params["state"] target = module.params["target"] + # make sure the target path is expanded for ~ and $HOME + target = os.path.expandvars(os.path.expanduser(target)) + # 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 # ~/.my.cnf.