-
Notifications
You must be signed in to change notification settings - Fork 33
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
support for non-english systems [patch] #4
Comments
je suis desolée and thanks for the patch. |
I had to remove the variable LANG=C because it was breaking on some systems. I have made a note to test against the FR locale and fix this issue in a different way. |
We fixed this on our Puppet 3 system by passing the environment variable to Open3 as follows: stdin, stdout, stderr = Open3.popen3({'LANG' => 'C'}, '/usr/bin/lpstat -p') |
I'm getting conflicting information about the best method to use for executing shell commands, but it looks like ill have to ditch the provider |
Next version released will use |
@mosen I could not find @mosen One step further: Despite i18n, the config files are always in the same language. My uneducated guess would be that is easier to parse config file while changes should still be mage via shell commands. Do you parse shell command output for a reason or just sake of simplicity? |
@leoarnold I had a branch which used execute, which I planned to merge into master at some stage (given the problems i had with commands helper method). @leoarnold Shell command parsing is just idiomatic for puppet. Parsing config files would be ok, but I'd have to do it without introducing any dependencies, which means the provider would have some parsing code added in. I would rather set the locale at the moment. |
I'm using puppet on french systems (locale defaults to FR_fr)
Indeed, lpstat -p gives :
with this patch to /lib/facter/printers.rb
everything's great!
The text was updated successfully, but these errors were encountered: