Mentions légales du service

Skip to content
Snippets Groups Projects
Commit d54f7079 authored by POUILLOUX Laurent's avatar POUILLOUX Laurent Committed by POUILLOUX Laurent
Browse files

[gen:wiki] raise explicit error message if botpassword is not defined

parent 0e0fbafb
No related branches found
No related tags found
1 merge request!592[gen:wiki] raise explicit error message if botpassword is not defined
Pipeline #883689 passed
...@@ -16,8 +16,11 @@ class WikiGenerator ...@@ -16,8 +16,11 @@ class WikiGenerator
tries = 3 tries = 3
begin begin
conf = RefRepo::Utils.get_api_config conf = RefRepo::Utils.get_api_config
@mw_client.log_in(conf['username'], conf['botpassword']) @mw_client.log_in(conf[:username], conf[:botpassword])
rescue rescue
if !conf.has_key?(:botpassword)
raise "botpassword is not defined, see https://www.grid5000.fr/w/TechTeam:Reference_Repository#Credentials"
end
tries -= 1 tries -= 1
if tries > 0 if tries > 0
puts "Login failed. retrying..." puts "Login failed. retrying..."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment