mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Change key formatting to return
This commit is contained in:
parent
fed6718b4a
commit
ef6364b542
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ def tools_maindomain(old_domain=None, new_domain=None, dyndns=False):
|
|||
old_domain = f.readline().rstrip()
|
||||
|
||||
if not new_domain:
|
||||
return { 'Current main domain': old_domain }
|
||||
return { 'current_main_domain': old_domain }
|
||||
|
||||
validate(r'^([a-zA-Z0-9]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)(\.[a-zA-Z0-9]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)*(\.[a-zA-Z]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)$', old_domain)
|
||||
|
||||
|
|
Loading…
Reference in a new issue