Merge "Allow get_mime: False on localhost"
This commit is contained in:
commit
2cec662aa3
|
@ -62,7 +62,7 @@ class ActionModule(normal.ActionModule):
|
|||
|
||||
Block any access of files outside the zuul work dir.
|
||||
'''
|
||||
if self._task.args.get('get_mime') is not None:
|
||||
if self._task.args.get('get_mime'):
|
||||
raise AnsibleError("get_mime on localhost is forbidden")
|
||||
paths._fail_if_unsafe(self._task.args['path'])
|
||||
|
||||
|
|
Loading…
Reference in New Issue