diff --git a/lib/refrepo/utils.rb b/lib/refrepo/utils.rb index b1812cd5cff981b4a0ec18d67d16af2c006860ce..35ad5d5303459b6fabf3b99b2ea55e08acabc98d 100644 --- a/lib/refrepo/utils.rb +++ b/lib/refrepo/utils.rb @@ -13,8 +13,9 @@ module RefRepo::Utils o = { :http_basic_authentication => [conf['username'], conf['password']] } else o = {} + puts "Check the documentation https://www.grid5000.fr/w/TechTeam:Reference_Repository#Credentials and your ~/.grid5000_api.yml file" end - d = open("#{conf['uri']}/#{conf['version']}/#{path}", o).read + d = URI.open("#{conf['uri']}/#{conf['version']}/#{path}", o).read return JSON::parse(d) end