Issue #12452 has been reported by Deepak Giridharagopal.

----------------------------------------
Bug #12452: Puppet::Util::SELinux#read_mounts not compatible with Ruby 1.9.2p290
https://projects.puppetlabs.com/issues/12452

Author: Deepak Giridharagopal
Status: Unreviewed
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 


>From Jos Backus, via email:

<cite>
I just found this bug while running Puppet 2.7.10 on CentOS 6.2 during
kickstart with Ruby 1.9.2p290. The error it fixes is a NoMethodError:
there's no String#collect. It doesn't look like the result of the
block is used so collect creates an unused object; each_line seems to
make more sense, plus it works with Ruby 1.8.7, too.
</cite>

<pre>
--- selinux.rb.orig    2012-02-02 22:47:26.798249289 -0800
+++ selinux.rb    2012-02-02 22:35:09.725273057 -0800
@@ -163,7 +163,7 @@
    # Read all entries in /proc/mounts.  The second column is the
    # mountpoint and the third column is the filesystem type.
    # We skip rootfs because it is always mounted at /
-    mounts.collect do |line|
+    mounts.each_line do |line|
      params = line.split(' ')
      next if params[2] == 'rootfs'
      mntpoint[params[1]] = params[2]
</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