mirror of
https://gitlab.wikimedia.org/ladsgroup/Phabricator-maintenance-bot
synced 2024-11-28 15:02:39 +01:00
Merge pull request #12 from urbanecm/fix-dbname-underscore
new_wikis_handler: dbname never includes dashes, instead, it uses und…
This commit is contained in:
commit
26eb484799
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