diff options
author | ldep30 <dludo59@gmail.com> | 2016-06-15 20:21:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-15 20:21:51 +0200 |
commit | b5011707b9193ec4ecd4c4ee8df903b7becc1a6b (patch) | |
tree | b4b4fb1a318b26dd49389a81eb19cac244d9fe9a /extra/rest_client.rb | |
parent | 47d2026800eb6f724626638609aa8cdaa05998b9 (diff) |
Update rest_client.rb
Diffstat (limited to 'extra/rest_client.rb')
-rw-r--r-- | extra/rest_client.rb | 4 |
1 files changed, 1 insertions, 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 |