Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force language to English in virsh #41

Merged
merged 1 commit into from
Apr 28, 2015
Merged

Force language to English in virsh #41

merged 1 commit into from
Apr 28, 2015

Conversation

kakwa
Copy link
Contributor

@kakwa kakwa commented Dec 8, 2014

Set environment variable �LC_ALL to 'en_US.utf8' in order to force virsh output in English.
Starting at least from version 1.1.1 (CentOS/RHEL 7), virsh is (partially) internationalized.
Example:

$ export LC_ALL=fr_FR.utf8
$ virsh -q net-list --all
br0 actif yes yes

$ export LC_ALL=en_US.utf8
$ virsh -q net-list --all
br0 active yes yes

It doesn't play well with various execs in this module, because unless or onlyif conditions 'greps' on "active".

Set environment variable �LC_ALL to 'en_US.utf8' in order to force virsh output in English. 
Starting at least from version 1.1.1 (CentOS/RHEL 7), virsh is (partially) internationalized.
 Example:
 
$ export LC_ALL=fr_FR.utf8
$ virsh -q net-list --all
br0 actif yes yes

$ export LC_ALL=en_US.utf8
$ virsh -q net-list --all
br0 active yes yes

It doesn't play well with various execs in this module, because unless or onlyif conditions 'greps' on "active".
@kakwa kakwa changed the title force language to english for virsh force language to English in virsh Dec 8, 2014
@kakwa kakwa changed the title force language to English in virsh Force language to English in virsh Dec 8, 2014
@igalic
Copy link
Contributor

igalic commented Dec 11, 2014

huh? i thought puppet sets C as default locale…

@thias
Copy link
Owner

thias commented Apr 28, 2015

Thanks! Maybe the service/daemon sets its own locale, but manifests can also be applied using "puppet apply", and I'm pretty sure the current environment variables are kept in that case (at least).

thias added a commit that referenced this pull request Apr 28, 2015
Force language to English in virsh
@thias thias merged commit c2e1815 into thias:master Apr 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants