mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-25 09:00:26 +00:00
Update manage.py
This commit is contained in:
parent
aa16d448f3
commit
794a302cce
1 changed files with 9 additions and 1 deletions
|
@ -532,8 +532,16 @@ def app_domain_list(app_id):
|
||||||
raise CommandException(code, message, "")
|
raise CommandException(code, message, "")
|
||||||
|
|
||||||
domains = get_all_domains(app_id)
|
domains = get_all_domains(app_id)
|
||||||
|
ret = {}
|
||||||
|
ret['domains'] = domains
|
||||||
|
|
||||||
|
default_domain = ""
|
||||||
|
if len(domains) > 0:
|
||||||
|
default_domain = domains[0]
|
||||||
|
ret['default_domain'] = default_domain
|
||||||
|
|
||||||
|
return ret
|
||||||
|
|
||||||
return domains
|
|
||||||
|
|
||||||
def app_domain_delete(app_id, domain):
|
def app_domain_delete(app_id, domain):
|
||||||
code, message = docker.check_app_id(app_id)
|
code, message = docker.check_app_id(app_id)
|
||||||
|
|
Loading…
Reference in a new issue