Port arg specs from type='str' to type='path'

This commit is contained in:
Toshio Kuratomi 2017-10-07 14:57:13 -07:00
commit 75eed6a51a
12 changed files with 27 additions and 40 deletions

View file

@ -148,7 +148,6 @@ 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, os.R_OK):
module.fail_json(msg="src %s doesn't exist or not readable" % (p.src))