Expand target for mysql_db

Fixes #8128
reviewable/pr18780/r1
James Cammarata 10 years ago
parent de3133682e
commit 93d862f3f5

@ -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.

Loading…
Cancel
Save