synchronize - remove unused block (#64344)

This commit is contained in:
Med 2019-11-05 16:34:18 +01:00 committed by Sam Doran
parent d9f5be8d0d
commit a1ab093ddb
2 changed files with 2 additions and 6 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- synchronize - remove unused block (https://github.com/ansible/ansible/issues/63954)

View file

@ -417,10 +417,4 @@ class ActionModule(ActionBase):
# run the module and store the result
result.update(self._execute_module('synchronize', module_args=_tmp_args, task_vars=task_vars))
if 'SyntaxError' in result.get('exception', result.get('msg', '')):
# Emit a warning about using python3 because synchronize is
# somewhat unique in running on localhost
result['exception'] = result['msg']
result['msg'] = ('SyntaxError parsing module. Perhaps invoking "python" on your local (or delegate_to) machine invokes python3. '
'You can set ansible_python_interpreter for localhost (or the delegate_to machine) to the location of python2 to fix this')
return result