mirror of
https://gitlab.wikimedia.org/ladsgroup/Phabricator-maintenance-bot
synced 2024-11-21 19:42: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,17 +143,19 @@ def hande_task(phid):
|
|||
create_patch_for_dns(language_code, task_tid)
|
||||
add_checklist(dns_url, 'DNS', dns)
|
||||
|
||||
if parts[1] == 'wikipedia':
|
||||
db_name = parts[0].replace('-', '_') + 'wiki'
|
||||
else:
|
||||
db_name = parts[0].replace('-', '_') + parts[1]
|
||||
db_name = wiki_spec.get('Database name')
|
||||
if not db_name:
|
||||
if parts[1] == 'wikipedia':
|
||||
db_name = parts[0].replace('-', '_') + 'wiki'
|
||||
else:
|
||||
db_name = parts[0].replace('-', '_') + parts[1]
|
||||
|
||||
if not special and wiki_spec.get('Special', '').lower() != 'yes':
|
||||
handle_subticket_for_cloud(task_details, db_name)
|
||||
|
||||
if special:
|
||||
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):
|
||||
apache = False
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue