Expand user in path, fix #385
This commit is contained in:
parent
21c8266ebd
commit
9ba0f9f572
1 changed files with 1 additions and 0 deletions
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in a new issue