Merge pull request #401 from mscherer/fix_385

Expand user in path, fix #385
reviewable/pr18780/r1
Toshio Kuratomi 10 years ago
commit df7fcc90d9

@ -130,6 +130,7 @@ def main():
# Create type object as namespace for module params # Create type object as namespace for module params
p = type('Params', (), module.params) p = type('Params', (), module.params)
p.src = os.path.expanduser(p.src)
if not os.access(p.src, R_OK): if not os.access(p.src, R_OK):
module.fail_json(msg="src %s doesn't exist or not readable" % (p.src)) module.fail_json(msg="src %s doesn't exist or not readable" % (p.src))

Loading…
Cancel
Save