Skip to content
This repository has been archived by the owner on Dec 6, 2022. It is now read-only.

Commit

Permalink
Merge pull request #24 from bernd/18-compat
Browse files Browse the repository at this point in the history
Restore Ruby 1.8 compatibility
  • Loading branch information
ripienaar committed Aug 13, 2013
2 parents 2282207 + bfa0871 commit f84559f
Show file tree
Hide file tree
Showing 2 changed files with 161 additions and 161 deletions.
6 changes: 3 additions & 3 deletions lib/nagios/external_commands.rb
Expand Up @@ -21,7 +21,7 @@ module Nagios
class ExternalCommands

require 'erb'
require_relative 'external_commands/list'
require 'nagios/external_commands/list'

# Constructor for the external command write class.
#
Expand Down Expand Up @@ -132,11 +132,11 @@ def write data
end
end

output << { data: params, result: messages.empty? , messages: messages }
output << { :data => params, :result => messages.empty? , :messages => messages }
result &&= messages.empty?
end # data.each

{ result: result, data: output }
{ :result => result, :data => output }
end # def write
end
end
Expand Down

0 comments on commit f84559f

Please sign in to comment.