Showing 2,704 of 2,705 total issues
Use =~
in places where the MatchData
returned by #match
will not be used. Open
puts "#{nodename} - #{output}" if output.match(/[^\s]/)
- Read upRead up
- Exclude checks
Useless assignment to variable - ssh_conf
. Open
ssh_conf = File.read("#{NAGIOS_HOME}/.ssh/config")
- Read upRead up
- Exclude checks
Useless assignment to variable - opts
. Open
opts = Net::SSH::Config.for(dest_host, ["#{NAGIOS_HOME}/.ssh/config"])
- Read upRead up
- Exclude checks