mirror of https://github.com/openspug/spug
A api update
parent
2d14919cb4
commit
8213e5d67c
|
@ -6,7 +6,7 @@ import os
|
||||||
|
|
||||||
def parse_envs(text):
|
def parse_envs(text):
|
||||||
data = {}
|
data = {}
|
||||||
if data:
|
if text:
|
||||||
for line in text.split('\n'):
|
for line in text.split('\n'):
|
||||||
fields = line.split('=', 1)
|
fields = line.split('=', 1)
|
||||||
if len(fields) != 2 or fields[0].strip() == '':
|
if len(fields) != 2 or fields[0].strip() == '':
|
||||||
|
|
|
@ -22,6 +22,8 @@ def deploy_dispatch(request, req, token):
|
||||||
APP_ID=str(req.app_id),
|
APP_ID=str(req.app_id),
|
||||||
TASK_NAME=req.name,
|
TASK_NAME=req.name,
|
||||||
TASK_ID=str(req.id),
|
TASK_ID=str(req.id),
|
||||||
|
ENV_ID=str(req.app.env_id),
|
||||||
|
ENV_KEY=req.app.env.key,
|
||||||
VERSION=req.version
|
VERSION=req.version
|
||||||
)
|
)
|
||||||
if req.app.extend == '1':
|
if req.app.extend == '1':
|
||||||
|
|
Loading…
Reference in New Issue