Following up on my own post:

> One has to patch this file (on ALL client PCs!):
>  C:/Program Files (x86)/Puppet Labs/Puppet/facter/lib/facter/timezone.rb
> ----------------------------
>   +     Iconv.iconv("UTF-8", "windows-1250",Time.new.zone)
>   -     Time.new.zone
> ----------------------------

I just found that iconv is deprecated in ruby and one is supposed to
use String#encode instead.  Otherwise "puppet --agent --test" shows a
deprecation warning at every run.

Okay, did that.  Now my timezone.rb looks like this:
----------------------------
Facter.add("timezone") do
  setcode do
    Time.new.zone.encode("UTF-8", "windows-1250")
  end
end
----------------------------

Bye,
 Andy.


-- 
 If an economist can't give you his phone number, he'll give you an
 estimate.  (Jack Valenti)

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/20140129182802.GA7511%40spiegl.de.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to