Issue #13117 has been reported by Jesse Weisner.
----------------------------------------
Bug #13117: semodule broken in 2.7.12
https://projects.puppetlabs.com/issues/13117
Author: Jesse Weisner
Status: Unreviewed
Priority: Normal
Assignee:
Category: provider
Target version: 2.7.12
Affected Puppet version:
Keywords: semodule rhel6
Branch:
The SELinux module provider is broken in Puppet 2.7.12 (using
puppet-2.7.12-1.el6.noarch from the Puppet Labs YUM repo) on RHEL-6.2:
<pre><code>err: /Stage[main]/.../Selmodule[...]: Could not evaluate: undefined
method `each_line' for #<Array:0x7fc2db333628></code></pre>
Changing the selmodule provider to use @each@ instead of @each_line@ seems to
fix it.
<pre><code>---
/usr/lib/ruby/site_ruby/1.8/puppet/provider/selmodule/semodule.rb.orig
2012-03-14 13:49:20.937956593 -0700
+++ /usr/lib/ruby/site_ruby/1.8/puppet/provider/selmodule/semodule.rb
2012-03-14 13:55:36.172042784 -0700
@@ -21,7 +21,7 @@
def exists?
self.debug "Checking for module #{@resource[:name]}"
execpipe("#{command(:semodule)} --list") do |out|
- out.each_line do |line|
+ out.each do |line|
if line =~ /#{@resource[:name]}\b/
return :true
end
@@ -118,7 +118,7 @@
begin
execpipe("#{command(:semodule)} --list") do |output|
lines = output.readlines
- lines.each_line do |line|
+ lines.each do |line|
line.chomp!
bits = line.split
if bits[0] == @resource[:name]
</pre></code>
--
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.