Title: Message Title
Zahid Bukhari commented on an issue
Facter / Bug FACT-714
Facter doesn't recognize String time when using to_s on Time type
I have a fact similar to the following:

{noformat}
# os_install_date.rb

Facter.add('os_install_date') do
        setcode do
                # Red Hat based OS
                if File.exists?('/root/anaconda-ks.cfg')
                        File.mtime('/root/anaconda-ks.cfg').strftime('%Y/%m/%d-%H:%M:%S')
                end
        end
end
...

--
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.

Reply via email to