just getting uninitialized constants errors. Just use strings instead
for now.
Signed-off-by: Stephen Gran <steve@lobefin.net>
confine :kernel => :linux
ENV["PATH"]="/bin:/sbin:/usr/bin:/usr/sbin"
setcode do
- ishp = False
+ ishp = "false"
lspciexists = system "/bin/bash -c 'which lspci >&/dev//null'"
if $?.exitstatus == 0
- output = %x{lspci}
- output.each { |s|
- ishp == True if s =~ /RAID bus controller: (.*) Smart Array/
+ %x{lspci}.each { |s|
+ ishp == "true" if s =~ /RAID bus controller: (.*) Smart Array/
}
end
ishp