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
3cdd3f5484
commit
aafefbb8bc
1 changed files with 4 additions and 3 deletions
|
@ -545,10 +545,11 @@ def app_domain_delete(app_id, domains):
|
|||
raise CommandException(const.ERROR_CLIENT_PARAM_NOTEXIST, "APP is not exist", "")
|
||||
else:
|
||||
raise CommandException(code, message, "")
|
||||
old_domains = get_all_domains(app_id)
|
||||
old_all_domains = get_all_domains(app_id)
|
||||
for domain in domains:
|
||||
if domain not in old_domains:
|
||||
raise CommandException(const.ERROR_CLIENT_PARAM_NOTEXIST, "Domain is not bind", "")
|
||||
if domain not in old_all_domains:'
|
||||
myLogger.info_logger("delete domain is not binded")
|
||||
raise CommandException(const.ERROR_CLIENT_PARAM_NOTEXIST, "Domain is not bind.", "")
|
||||
|
||||
proxy = get_proxy_domain(app_id, domain)
|
||||
if proxy != None:
|
||||
|
|
Loading…
Reference in a new issue