lib/nagios/external_commands.rb in ruby-nagios-0.1.0 vs lib/nagios/external_commands.rb in ruby-nagios-0.2.0
- old
+ new
@@ -131,9 +131,10 @@
end
end
end
output << { data: params, result: messages.empty? , messages: messages }
+ result &&= messages.empty?
end # data.each
{ result: result, data: output }
end # def write
end