summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPawel Chojnacki <pawel@chojnacki.ws>2018-01-04 13:56:07 +0100
committerPawel Chojnacki <pawel@chojnacki.ws>2018-01-04 13:56:07 +0100
commite308bb0cd2226297093ffb488a4d97e3c02c4883 (patch)
treedd3087cc2561ae4a186076dca816eaf28af822ae /lib
parent9c0b10da4147470050c1ae144fc75c2963eeb4ba (diff)
downloadgitlab-ce-e308bb0cd2226297093ffb488a4d97e3c02c4883.tar.gz
Cleanup implementation and add cluster finding tests
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/prometheus_client.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/prometheus_client.rb b/lib/gitlab/prometheus_client.rb
index 79f66b42c21..8264501b1ae 100644
--- a/lib/gitlab/prometheus_client.rb
+++ b/lib/gitlab/prometheus_client.rb
@@ -6,7 +6,7 @@ module Gitlab
attr_reader :rest_client, :headers
def initialize(rest_client)
- @rest_client = rest_client || RestClient::Resource.new(api_url)
+ @rest_client = rest_client
end
def ping