Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPawel Chojnacki <pawel@chojnacki.ws>2018-01-04 15:56:07 +0300
committerPawel Chojnacki <pawel@chojnacki.ws>2018-01-04 15:56:07 +0300
commite308bb0cd2226297093ffb488a4d97e3c02c4883 (patch)
treedd3087cc2561ae4a186076dca816eaf28af822ae /lib/gitlab/prometheus_client.rb
parent9c0b10da4147470050c1ae144fc75c2963eeb4ba (diff)
Cleanup implementation and add cluster finding tests
Diffstat (limited to 'lib/gitlab/prometheus_client.rb')
-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