1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Expand target for mysql_db

Fixes #8128
This commit is contained in:
James Cammarata 2014-07-16 13:39:47 -05:00
parent d7469218a5
commit ac73822405

View file

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