bin/handler-opsgenie.rb in sensu-plugins-opsgenie-2.0.0 vs bin/handler-opsgenie.rb in sensu-plugins-opsgenie-2.0.1

- old
+ new

@@ -23,10 +23,10 @@ @json_config.merge!(@event['check']['opsgenie']) end message = @event['notification'] || [@event['client']['name'], @event['check']['name'], @event['check']['output'].chomp].join(' : ') begin - timeout(30) do + Timeout.timeout(30) do response = case @event['action'] when 'create' create_alert(message) when 'resolve' close_alert