A api update

pull/22/head
雷二猛 2019-12-23 18:25:49 +08:00
parent 2d14919cb4
commit 8213e5d67c
2 changed files with 3 additions and 1 deletions

View File

@ -6,7 +6,7 @@ import os
def parse_envs(text):
data = {}
if data:
if text:
for line in text.split('\n'):
fields = line.split('=', 1)
if len(fields) != 2 or fields[0].strip() == '':

View File

@ -22,6 +22,8 @@ def deploy_dispatch(request, req, token):
APP_ID=str(req.app_id),
TASK_NAME=req.name,
TASK_ID=str(req.id),
ENV_ID=str(req.app.env_id),
ENV_KEY=req.app.env.key,
VERSION=req.version
)
if req.app.extend == '1':