Fix bug with fetch when using sudo: true

Fixes #3111
pull/3963/merge
James Cammarata 11 years ago
parent ffb4d480cf
commit faf82bf841

@ -73,7 +73,7 @@ class ActionModule(object):
# use slurp if sudo and permissions are lacking
remote_data = None
if remote_md5 in ('1', '2') and self.runner.sudo:
if remote_md5 in ('1', '2') or self.runner.sudo:
slurpres = self.runner._execute_module(conn, tmp, 'slurp', 'src=%s' % source, inject=inject)
if slurpres.is_successful():
if slurpres.result['encoding'] == 'base64':

Loading…
Cancel
Save