mirror of
https://gitlab.wikimedia.org/ladsgroup/Phabricator-maintenance-bot
synced 2024-11-25 13:32:38 +01:00
Add ability to override dbname
Some wikis have a different dbname than what can be found from their urls, like T246945
This commit is contained in:
parent
7ace1cb220
commit
0617aa1b9b
1 changed files with 7 additions and 5 deletions
|
@ -143,6 +143,8 @@ def hande_task(phid):
|
||||||
create_patch_for_dns(language_code, task_tid)
|
create_patch_for_dns(language_code, task_tid)
|
||||||
add_checklist(dns_url, 'DNS', dns)
|
add_checklist(dns_url, 'DNS', dns)
|
||||||
|
|
||||||
|
db_name = wiki_spec.get('Database name')
|
||||||
|
if not db_name:
|
||||||
if parts[1] == 'wikipedia':
|
if parts[1] == 'wikipedia':
|
||||||
db_name = parts[0].replace('-', '_') + 'wiki'
|
db_name = parts[0].replace('-', '_') + 'wiki'
|
||||||
else:
|
else:
|
||||||
|
@ -153,7 +155,7 @@ def hande_task(phid):
|
||||||
|
|
||||||
if special:
|
if special:
|
||||||
apache_url = gerrit_path + \
|
apache_url = gerrit_path + \
|
||||||
'operations/puppet/+/master/modules/mediawiki/manifests/web/prod_sites.pp'
|
'operations/puppet/+/production/modules/mediawiki/manifests/web/prod_sites.pp'
|
||||||
if not handle_special_wiki_apache(parts):
|
if not handle_special_wiki_apache(parts):
|
||||||
apache = False
|
apache = False
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue