Handle only the success case on geo node status service

parent 47df7b77
......@@ -12,7 +12,7 @@ module Geo
begin
response = self.class.get(status_url, headers: headers)
if response.success? || response.redirection?
if response.success?
response.parsed_response.values_at(*KEYS)
else
["Could not connect to Geo node - HTTP Status Code: #{response.code}"]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment