Merge "Fix Ansible 2.7 uri module"
This commit is contained in:
commit
efae4deec5
|
@ -3,4 +3,4 @@
|
|||
- uri:
|
||||
method: GET
|
||||
url: https://example.com
|
||||
path: /tmp/example.out
|
||||
dest: /tmp/example.out
|
||||
|
|
|
@ -30,6 +30,9 @@ class ActionModule(uri.ActionModule):
|
|||
return paths._fail_module_dict(self._task.action)
|
||||
|
||||
if paths._is_localhost_task(self):
|
||||
paths._fail_if_unsafe(self._task.args['path'])
|
||||
for arg in ('src', 'dest'):
|
||||
dest = self._task.args.get(arg)
|
||||
if dest:
|
||||
paths._fail_if_unsafe(dest)
|
||||
|
||||
return super(ActionModule, self).run(tmp, task_vars)
|
||||
|
|
Loading…
Reference in New Issue