mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Port arg specs from type='str' to type='path'
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user