fix: workspace path to /d/pipeline/workspaces
This commit is contained in:
parent
c8e597764d
commit
5ccaba3505
@ -5,7 +5,7 @@ if not uid:
|
|||||||
uid = 'user-01'
|
uid = 'user-01'
|
||||||
|
|
||||||
dbname = get_module_dbname('pipeline-sdlc')
|
dbname = get_module_dbname('pipeline-sdlc')
|
||||||
workspace_base = '/home/pipeline/pipeline_ws'
|
workspace_base = '/d/pipeline/workspaces'
|
||||||
|
|
||||||
async with DBPools().sqlorContext(dbname) as sor:
|
async with DBPools().sqlorContext(dbname) as sor:
|
||||||
# 获取当前项目和工作空间目录
|
# 获取当前项目和工作空间目录
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
action = (params_kw or {}).get('action', 'read')
|
action = (params_kw or {}).get('action', 'read')
|
||||||
filepath = (params_kw or {}).get('path', '').strip()
|
filepath = (params_kw or {}).get('path', '').strip()
|
||||||
workspace_base = '/home/pipeline/pipeline_ws'
|
workspace_base = '/d/pipeline/workspaces'
|
||||||
|
|
||||||
# 安全检查
|
# 安全检查
|
||||||
if not filepath or not filepath.startswith(workspace_base):
|
if not filepath or not filepath.startswith(workspace_base):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user