mirror of
https://gitlab.wikimedia.org/ladsgroup/Phabricator-maintenance-bot
synced 2024-11-10 06:02:37 +01:00
new_wikis_handler: dbname never includes dashes, instead, it uses underscores
zh-classical.wikipedia.org should map to zh_classicalwiki
This commit is contained in:
parent
dbb3ee2c40
commit
0b2010dded
1 changed files with 3 additions and 2 deletions
|
@ -83,6 +83,7 @@ def hande_task(phid):
|
||||||
parts = url.split('.')
|
parts = url.split('.')
|
||||||
if len(parts) != 3 or parts[2] != 'org':
|
if len(parts) != 3 or parts[2] != 'org':
|
||||||
return
|
return
|
||||||
|
|
||||||
if parts[1] == 'wikimedia':
|
if parts[1] == 'wikimedia':
|
||||||
dns = handle_special_wiki_dns(parts)
|
dns = handle_special_wiki_dns(parts)
|
||||||
special = True
|
special = True
|
||||||
|
@ -104,9 +105,9 @@ def hande_task(phid):
|
||||||
add_text(' [x] [[{}|DNS]]'.format(dns_url))
|
add_text(' [x] [[{}|DNS]]'.format(dns_url))
|
||||||
|
|
||||||
if parts[1] == 'wikipedia':
|
if parts[1] == 'wikipedia':
|
||||||
db_name = parts[0] + 'wiki'
|
db_name = parts[0].replace('-', '_') + 'wiki'
|
||||||
else:
|
else:
|
||||||
db_name = parts[0] + parts[1]
|
db_name = parts[0].replace('-', '_') + parts[1]
|
||||||
|
|
||||||
handle_subticket_for_cloud(client.lookupPhid('T251371'), task_details, db_name)
|
handle_subticket_for_cloud(client.lookupPhid('T251371'), task_details, db_name)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue