This fixes 8173, if target was not defined it would break, now it wont

reviewable/pr18780/r1
Jonathan Mainguy 11 years ago
parent 5fb7197de1
commit 3da1e5ce62

@ -283,6 +283,7 @@ def main():
target = module.params["target"] target = module.params["target"]
# make sure the target path is expanded for ~ and $HOME # make sure the target path is expanded for ~ and $HOME
if target is not None:
target = os.path.expandvars(os.path.expanduser(target)) target = os.path.expandvars(os.path.expanduser(target))
# Either the caller passes both a username and password with which to connect to # Either the caller passes both a username and password with which to connect to

Loading…
Cancel
Save