diff options
author | Michael Scherer <misc@zarb.org> | 2015-04-14 18:48:36 -0400 |
---|---|---|
committer | Michael Scherer <misc@zarb.org> | 2015-04-14 18:48:36 -0400 |
commit | 9ba0f9f57280911cc49e53ee948e972776f9fc2e (patch) | |
tree | 170854285720f0e7504ac2490d84672924949e29 /files | |
parent | 21c8266ebd45e4512ced84773129c6a017257e37 (diff) | |
download | ansible-modules-extras-9ba0f9f57280911cc49e53ee948e972776f9fc2e.tar.gz |
Expand user in path, fix #385
Diffstat (limited to 'files')
-rwxr-xr-x | files/patch.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/files/patch.py b/files/patch.py index 2f2894a6..ec3a3b02 100755 --- a/files/patch.py +++ b/files/patch.py @@ -130,6 +130,7 @@ def main(): # Create type object as namespace for module params p = type('Params', (), module.params) + p.src = os.path.expanduser(p.src) if not os.access(p.src, R_OK): module.fail_json(msg="src %s doesn't exist or not readable" % (p.src)) |