Skip to content

Commit

Permalink
Merge pull request #2455 from hLinx/hotfix_master
Browse files Browse the repository at this point in the history
fix: 脚本执行下载日志主机参数错误 #2452
  • Loading branch information
hLinx authored Sep 15, 2023
2 parents 11147bf + 0cf5c97 commit 5629973
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 18 deletions.
9 changes: 5 additions & 4 deletions src/frontend/src/domain/source/task-execute.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,11 @@ class TaskExecute extends ModuleBase {

// 下载执行日志文件
getLogFile(payload) {
const params = {};
if (payload.ip) {
params.ip = payload.ip;
}
const params = {
...payload,
};
delete params.id;

return Request.download(`${this.path}/step-execution-result/${payload.id}/log-file/download`, {
params,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@
handleDownload() {
TaskExecuteService.fetchStepExecutionLogFile({
id: this.stepInstanceId,
ip: this.host.hostId,
hostId: this.host.hostId,
}).then(() => {
this.$bkMessage({
theme: 'success',
Expand Down
13 changes: 0 additions & 13 deletions src/frontend/src/views/executive-history/step-detail/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -551,19 +551,6 @@
execCopy(fieldDataList.join('\n'), successMessage);
});
},
/**
* @desc 导出脚本执行日志
*/
handleExportExecutionLog() {
TaskExecuteService.fetchStepExecutionLogFile({
id: this.params.id,
}).then(() => {
this.$bkMessage({
theme: 'success',
message: I18n.t('history.导出日志操作成功'),
});
});
},
/**
* @desc 开始强制终止
*/
Expand Down

0 comments on commit 5629973

Please sign in to comment.