diff options
author | Lénaïc Huard <lenaic@lhuard.fr> | 2015-04-15 23:37:24 +0200 |
---|---|---|
committer | Lénaïc Huard <lenaic@lhuard.fr> | 2015-04-15 23:49:43 +0200 |
commit | b71037de41baf06889b7a875a0e8914f940ecc2a (patch) | |
tree | 87c3e89eec6823810e9c83b400e8862e62007245 /playbooks/aws/ansible-tower/config.yml | |
parent | 34326ef782bcba8632738a40d3948bb23a3915dc (diff) | |
download | openshift-b71037de41baf06889b7a875a0e8914f940ecc2a.tar.gz openshift-b71037de41baf06889b7a875a0e8914f940ecc2a.tar.bz2 openshift-b71037de41baf06889b7a875a0e8914f940ecc2a.tar.xz openshift-b71037de41baf06889b7a875a0e8914f940ecc2a.zip |
Make the error message checks locale proof
On a computer which has a locale set, the error messages look like this:
```
$ virsh net-info foo
erreur :impossible de récupérer le réseau « foo »
erreur :Réseau non trouvé : no network with matching name 'foo'
```
```
$ virsh pool-info foo
erreur :impossible de récupérer le pool « foo »
erreur :Pool de stockage introuvable : no storage pool with matching name 'foo'
```
The classical way to make those tests locale proof is to force a given locale.
Like this:
```
$ LANG=POSIX virsh net-info foo
error: failed to get network 'foo'
error: Réseau non trouvé : no network with matching name 'foo'
```
```
$ LANG=POSIX virsh pool-info foo
error: failed to get pool 'foo'
error: Pool de stockage introuvable : no storage pool with matching name 'foo'
```
It looks like the "Network not found" or "Storage pool not found" parts of the message
are generated by the `libvirtd` daemon and are not subject to the locale of the `virsh`
client.
The clean fix consists in patching `libvirt` so that `virsh` sends its locale to the
`libvirtd` daemon.
But in the mean time, it is safer to have our playbook match the part of the message
which is not subject to the daemon locale.
Diffstat (limited to 'playbooks/aws/ansible-tower/config.yml')
0 files changed, 0 insertions, 0 deletions