From b5011707b9193ec4ecd4c4ee8df903b7becc1a6b Mon Sep 17 00:00:00 2001 From: ldep30 Date: Wed, 15 Jun 2016 20:21:51 +0200 Subject: Update rest_client.rb --- extra/rest_client.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/extra/rest_client.rb b/extra/rest_client.rb index 90a64e4..35d93ae 100644 --- a/extra/rest_client.rb +++ b/extra/rest_client.rb @@ -16,11 +16,9 @@ module Oxidized CFGS.load rescue => error raise InvalidConfig, "Error loading config: #{error.message}" - ensure - CFG = CFGS.cfg end - restcfg = CFG.rest + restcfg = CFGS.cfg.rest unless restcfg.match(/^http:\/\//) restcfg.insert(0, 'http://') end -- cgit v1.2.1