Skip to content

Commit c929104

Browse files
committed
fix(summary): add unreachable to not ok servers
1 parent dbb9846 commit c929104

File tree

3 files changed

+12
-16
lines changed

3 files changed

+12
-16
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,5 @@ __debug_bin*
3636
/.venv/
3737

3838
/events.log
39-
/tasks.log
39+
/tasks.log
40+
/task_results.log

task_results.log

Lines changed: 0 additions & 15 deletions
This file was deleted.

web/src/components/AnsibleStageView.vue

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,16 @@ export default {
173173
this.loadProjectEndpoint(`/tasks/${this.taskId}/ansible/hosts`),
174174
this.loadProjectEndpoint(`/tasks/${this.taskId}/stages`),
175175
]);
176+
177+
this.hosts.forEach((host) => {
178+
if (host.unreachable) {
179+
this.failedTasks.push({
180+
host: host.host,
181+
task: '',
182+
error: 'Host is unreachable',
183+
});
184+
}
185+
});
176186
},
177187
178188
calcStats() {

0 commit comments

Comments
 (0)