mirror of https://github.com/openspug/spug
F 修复自定义发布在无主机动作时发布状态未正常更新的问题
parent
69a43489c7
commit
9485289641
|
@ -121,6 +121,8 @@ def _ext2_deploy(req, helper, env):
|
||||||
if exception:
|
if exception:
|
||||||
helper.send_error(h_id, f'Exception: {exception}')
|
helper.send_error(h_id, f'Exception: {exception}')
|
||||||
raise exception
|
raise exception
|
||||||
|
else:
|
||||||
|
helper.send_step('local', 100, f'\r\n{human_time()} ** 发布成功 **')
|
||||||
|
|
||||||
|
|
||||||
def _deploy_ext1_host(helper, h_id, extend, env):
|
def _deploy_ext1_host(helper, h_id, extend, env):
|
||||||
|
|
|
@ -99,7 +99,8 @@ class Ext1Index extends React.Component {
|
||||||
|
|
||||||
getStatusAlias = () => {
|
getStatusAlias = () => {
|
||||||
if (Object.keys(store.outputs).length !== 0) {
|
if (Object.keys(store.outputs).length !== 0) {
|
||||||
for (let item of [{id: 'local'}, ...store.request.targets]) {
|
const {targets, host_actions} = store.request;
|
||||||
|
for (let item of [{id: 'local'}, ...(host_actions.length > 0 ? targets : [])]) {
|
||||||
if (lds.get(store.outputs, `${item.id}.status`) === 'error') {
|
if (lds.get(store.outputs, `${item.id}.status`) === 'error') {
|
||||||
return <Tag color="red">发布异常</Tag>
|
return <Tag color="red">发布异常</Tag>
|
||||||
} else if (lds.get(store.outputs, `${item.id}.step`, -1) < 100) {
|
} else if (lds.get(store.outputs, `${item.id}.step`, -1) < 100) {
|
||||||
|
|
Loading…
Reference in New Issue