Mentions légales du service

Skip to content
Snippets Groups Projects
Commit e31355ad 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 2b97c369
No related branches found
No related tags found
No related merge requests found
Pipeline #881020 passed
......@@ -16,8 +16,11 @@ class WikiGenerator
tries = 3
begin
conf = RefRepo::Utils.get_api_config
@mw_client.log_in(conf['username'], conf['botpassword'])
@mw_client.log_in(conf[:username], conf[:botpassword])
rescue
if !conf.has_key?(:botpassword)
raise "botpassword is not defined, see https://www.grid5000.fr/w/TechTeam:Reference_Repository#Credentials"
end
tries -= 1
if tries > 0
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