mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
* 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
(cherry picked from commit
|
8 years ago | |
|---|---|---|
| .. | ||
| group_vars | 8 years ago | |
| host_vars | 8 years ago | |
| roles | 8 years ago | |
| targets | 8 years ago | |
| cloud-config-aws.yml.template | 8 years ago | |
| cloud-config-azure.yml.template | 8 years ago | |
| cloud-config-cs.ini.template | 9 years ago | |
| cloud-config-gcp.yml.template | 8 years ago | |
| dellos6.yaml | 9 years ago | |
| dellos9.yaml | 9 years ago | |
| dellos10.yaml | 8 years ago | |
| integration.cfg | 8 years ago | |
| integration_config.yml | 8 years ago | |
| inventory | 8 years ago | |
| inventory.networking.template | 8 years ago | |
| inventory.remote.template | 9 years ago | |
| inventory.winrm.template | 9 years ago | |
| network-integration.cfg | 8 years ago | |
| nxos.yaml | 8 years ago | |
| target-prefixes.network | 8 years ago | |
| windows-integration.cfg | 8 years ago | |