On Wed, 8 May 2013 06:49:32 -0700 (PDT)
jcbollinger <[email protected]> wrote:
> Examining the code doesn't reveal any obvious error.  Facter uses
> this:
> 
>   def
> self.read_sysfs_dmi_entries(path="/sys/firmware/dmi/entries/1-0/raw")
> if File.exists?(path) File.read(path)
>     end
>   end
> 
> That /sys/firmware/... path does not appear anywhere else in Facter
> that I (and Google) can find. That suggest that either the exists?
> test or the read must be causing the error to be emitted in your
> environment, but it's not clear which, or why.

So I guess the best would be to collect the following output

    % ruby --version
    % ls -l /sys/firmware/dmi/entries/1-0/raw
    % stat /sys/firmware/dmi/entries/1-0/raw
    % ruby -e 'puts :ok if File.exists?("/sys/firmware/dmi/entries/1-0/raw")'
    % ruby -e 'puts :ok if File.read("/sys/firmware/dmi/entries/1-0/raw")'

-Stefan

-- 
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to