Issue #10727 has been updated by Corey Osman.

I also see this error on RHEL5.4 x86_64
<pre>
/usr/lib/ruby/site_ruby/1.8/puppet/type/file.rb:48: warning: parenthesize 
argument(s) for future version

</pre>

Line 48 in file.rb looks like

<pre>

# convert the current path in an index into the collection and the last
    # path name. The aim is to use less storage for all common paths in a 
hierarchy
    munge do |value|
      # We know the value is absolute, so expanding it will just standardize it.
      path, name = ::File.split(::File.expand_path value)

      { :index => Puppet::FileCollection.collection.index(path), :name => name }
    end
</pre>

changing line 48 to the following seems to remove the error.
<pre>
  path, name = ::File.split(::File.expand_path(value))
</pre>
----------------------------------------
Bug #10727: undefined method 'Pathname' in 2.7.6 on RHEL4
https://projects.puppetlabs.com/issues/10727

Author: Corey Osman
Status: Investigating
Priority: Normal
Assignee: Josh Cooper
Category: 
Target version: 2.7.x
Affected Puppet version: 2.7.6
Keywords: 
Branch: 


There seems to be an issue with 2.7.6 on RHEL4 (64 bit) where when installed 
cannot run due to the following error:

Puppet version 2.7.5 seems to work fine so whatever changed in 2.7.6 is 
preventing puppet to run on RHEL.  This is probably due to the ancient ruby 
version.  
However, the recent security issue with 2.7.5 has forced me to install 2.7.6 
which currently doesn't work.

<pre>
Got an uncaught exception of type NoMethodError: undefined method 
`Pathname' for #Puppet::Type::File:0x2a969b5ee0
</pre>


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to