Update manage.py

This commit is contained in:
qiaofeng1227 2023-05-15 14:57:44 +08:00 committed by GitHub
parent 6231e8c4fb
commit 1f0c768f50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -551,13 +551,18 @@ def app_domain_delete(app_id, domains):
myLogger.info_logger("delete domain is not binded")
raise CommandException(const.ERROR_CLIENT_PARAM_NOTEXIST, "Domain is not bind.", "")
myLogger.info_logger("Start to delete " + domain)
proxy = get_proxy_domain(app_id, domain)
if proxy != None:
myLogger.info_logger(proxy)
myLogger.info_logger("before update")
myLogger.info_logger(domains_old)
domains_old = proxy["domain_names"]
for domain in domains:
if domain in domains_old:
domains_old.remove(domain)
myLogger.info_logger("after update")
myLogger.info_logger(domains_old)
if len(domains_old) == 0:
proxy_id = proxy["id"]
token = get_token()