Skip to content

Commit

Permalink
F 修复某些情况下可能无法创建发布申请的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
vapao committed Aug 9, 2020
1 parent b766084 commit 6ff4f62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spug_api/apps/deploy/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def post(self, request):
if deploy.extend == '2':
if form.extra[0]:
form.extra[0] = form.extra[0].replace("'", '')
if DeployExtend2.objects.filter(host_actions__contains='"src_mode": "1"').exists():
if DeployExtend2.objects.filter(deploy=deploy, host_actions__contains='"src_mode": "1"').exists():
if len(form.extra) < 2:
return json_response(error='该应用的发布配置中使用了数据传输动作且设置为发布时上传,请上传要传输的数据')
form.version = form.extra[1].get('path')
Expand Down

0 comments on commit 6ff4f62

Please sign in to comment.