1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/lib/ansible/executor
Pilou 4378542ac7 Connection error messages are unsafe: wrap them (#37329)
* Check that connection error msg are not unsafe

* Connection error messages are unsafe: wrap them

For example, in case of error, docker connection plugin returns exception
message containing Go template. These messages weren't tagged as unsafe
and were consequently rendered:

The conditional check 'result is failed' failed. The error was:
{
  'msg': u'Docker version check ([\'/usr/bin/docker\', \'version\', \'--format\', "\'{{.Server.Version}}\'"]) failed: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.35/version: dial unix /var/run/docker.sock: connect: permission denied\n',
  'failed': True
}:
template error while templating string: unexpected '.'.
String: Docker version check (['/usr/bin/docker', 'version', '--format', "'{{.Server.Version}}'"]) failed: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.35/version: dial unix /var/run/docker.sock: connect: permission denied
2018-03-13 16:20:24 -07:00
..
process include_role handlers bug fix (#26335) 2017-07-19 15:02:32 -05:00
__init__.py ansible/executor: PEP8 compliancy (#24695) 2017-05-30 18:13:53 +01:00
action_write_locks.py Facts Refresh (2.4 roadmap) (#23012) 2017-06-01 11:17:49 -04:00
module_common.py Fix types when evaluating interpreter (#36541) 2018-02-21 18:03:16 -08:00
play_iterator.py Cache tasks as they are queued instead of en masse (#34752) 2018-01-15 09:49:58 -06:00
playbook_executor.py Allow variables to be used in vars_prompt (#32802) 2018-01-05 13:24:20 -06:00
stats.py Provide a way to explicitly invoke the debugger (#34006) 2018-01-09 13:50:07 -06:00
task_executor.py Connection error messages are unsafe: wrap them (#37329) 2018-03-13 16:20:24 -07:00
task_queue_manager.py Config continued (#31024) 2017-11-16 13:49:57 -05:00
task_result.py hide uneeded fields for callbacks (#36259) 2018-02-20 08:41:18 -05:00