From 5fca52c86b50dd9754546902530530b9c0f6216b Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Fri, 26 Apr 2013 19:35:43 +0300 Subject: 1.9/2.0 compatibility fix + syslogd cleanup --- extra/rest_client.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'extra/rest_client.rb') diff --git a/extra/rest_client.rb b/extra/rest_client.rb index 2c58d04..88daeae 100644 --- a/extra/rest_client.rb +++ b/extra/rest_client.rb @@ -16,9 +16,9 @@ module Oxidized @web = Net::HTTP.new host, port end - def next node, opt={} - data = JSON.dump :node => node, :user => opt[:user], :msg => opt[:msg], :from => opt[:from] - @web.put '/nodes/next/' + node.to_s, data + def next opt + data = JSON.dump opt + @web.put '/nodes/next/' + opt[:name].to_s, data end end -- cgit v1.2.1