summaryrefslogtreecommitdiff
path: root/lib/oxidized/source/http.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oxidized/source/http.rb')
-rw-r--r--lib/oxidized/source/http.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/oxidized/source/http.rb b/lib/oxidized/source/http.rb
index e4cb58e..73df6f7 100644
--- a/lib/oxidized/source/http.rb
+++ b/lib/oxidized/source/http.rb
@@ -15,7 +15,7 @@ class HTTP < Source
require "uri"
require "json"
- def load node=nil
+ def load node_want=nil
nodes = []
uri = URI.parse(@cfg.url)
http = Net::HTTP.new(uri.host, uri.port)
@@ -29,8 +29,8 @@ class HTTP < Source
end
req_uri = uri.request_uri
- if node
- req_uri = "#{req_uri}/#{node}"
+ if node_want
+ req_uri = "#{req_uri}/#{node_want}"
end
request = Net::HTTP::Get.new(req_uri, headers)
if (@cfg.user? && @cfg.pass?)