mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #8191 from Jmainguy/mysql_db_8173
This fixes 8173, if target was not defined it would break, now it wont
This commit is contained in:
commit
cc6ad40534
1 changed files with 2 additions and 1 deletions
|
@ -283,6 +283,7 @@ def main():
|
|||
target = module.params["target"]
|
||||
|
||||
# make sure the target path is expanded for ~ and $HOME
|
||||
if target is not None:
|
||||
target = os.path.expandvars(os.path.expanduser(target))
|
||||
|
||||
# Either the caller passes both a username and password with which to connect to
|
||||
|
|
Loading…
Reference in a new issue