synchronize - remove unused block (#64344)
This commit is contained in:
parent
d9f5be8d0d
commit
a1ab093ddb
2 changed files with 2 additions and 6 deletions
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- synchronize - remove unused block (https://github.com/ansible/ansible/issues/63954)
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue