F 修复发布全局变量SPUG_HOST_ID和SPUG_HOST_NAME某些情况下未正确赋值的问题

pull/103/head
vapao 2020-05-29 11:41:32 +08:00
parent 0c1336aa88
commit 787de9c2a9
1 changed files with 1 additions and 0 deletions

View File

@ -93,6 +93,7 @@ def _ext1_deploy(req, helper, env):
with futures.ThreadPoolExecutor(max_workers=min(10, os.cpu_count() + 5)) as executor:
threads = []
for h_id in json.loads(req.host_ids):
env = AttrDict(env.items())
threads.append(executor.submit(_deploy_ext1_host, helper, h_id, extend, env))
for t in futures.as_completed(threads):
exception = t.exception()