Merge "Allow get_mime: False on localhost"

This commit is contained in:
Zuul
2018-08-09 20:52:35 +00:00
committed by Gerrit Code Review

View File

@@ -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'])