Update manage.py

This commit is contained in:
qiaofeng1227 2023-05-15 16:22:41 +08:00 committed by GitHub
parent aa16d448f3
commit 794a302cce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)