Commit 021fb573 authored by 张伟男's avatar 张伟男

同步

parent a8e85c19
...@@ -64,9 +64,9 @@ class BaseRequest: ...@@ -64,9 +64,9 @@ class BaseRequest:
host = self.api_load(path_setting.HOSTYAML_CONFIG) host = self.api_load(path_setting.HOSTYAML_CONFIG)
url_host = "" url_host = ""
if host["develop_host"].get("doctor") == "http://doctor.paas-develop.env": if host["develop_host"].get("doctor") is not None:
url_host = host['develop_host']['doctor'] url_host = host['develop_host']['doctor']
elif host["develop_host"].get("backend") == "http://backend.paas-develop.env": elif host["develop_host"].get("backend") is not None:
url_host = host['develop_host']['backend'] url_host = host['develop_host']['backend']
raw = yaml.dump(req) # 将一个python对象生成为yaml文档 raw = yaml.dump(req) # 将一个python对象生成为yaml文档
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment