From d8b3f76459c216ecad6427d7bf0482f27e832e78 Mon Sep 17 00:00:00 2001 From: Martin Seener Date: Thu, 26 May 2016 12:31:20 +0200 Subject: [PATCH] Fixed a bug introduced while adding the url check (sorry!) --- plugins/inputs/rabbitmq/rabbitmq.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/inputs/rabbitmq/rabbitmq.go b/plugins/inputs/rabbitmq/rabbitmq.go index fbfd2792e..05359f877 100644 --- a/plugins/inputs/rabbitmq/rabbitmq.go +++ b/plugins/inputs/rabbitmq/rabbitmq.go @@ -149,9 +149,9 @@ func (r *RabbitMQ) requestJSON(u string, target interface{}) error { if r.URL == "" { r.URL = DefaultURL } - u = fmt.Sprintf("%s%s", url, u) + u = fmt.Sprintf("%s%s", r.URL, u) - req, err := http.NewRequest("GET", r.URL, nil) + req, err := http.NewRequest("GET", u, nil) if err != nil { return err }