mirror of
https://github.com/ansible/awx.git
synced 2026-03-29 06:45:09 -02:30
don't render events if stdout is zero-length string
This commit is contained in:
@@ -2,10 +2,7 @@ import Ansi from 'ansi-to-html';
|
|||||||
import Entities from 'html-entities';
|
import Entities from 'html-entities';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
EVENT_NOTIFY_PLAYBOOK,
|
|
||||||
EVENT_RUNNER_OK,
|
|
||||||
EVENT_START_PLAY,
|
EVENT_START_PLAY,
|
||||||
EVENT_START_PLAYBOOK,
|
|
||||||
EVENT_STATS_PLAY,
|
EVENT_STATS_PLAY,
|
||||||
EVENT_START_TASK,
|
EVENT_START_TASK,
|
||||||
OUTPUT_ANSI_COLORMAP,
|
OUTPUT_ANSI_COLORMAP,
|
||||||
@@ -211,15 +208,7 @@ function JobRenderService ($q, $sce, $window) {
|
|||||||
const lines = stdout.split('\r\n');
|
const lines = stdout.split('\r\n');
|
||||||
const record = this.createRecord(event, lines);
|
const record = this.createRecord(event, lines);
|
||||||
|
|
||||||
if (event.event === EVENT_START_PLAYBOOK) {
|
if (lines.length === 1 && lines[0] === '') {
|
||||||
return { html: '', count: 0 };
|
|
||||||
}
|
|
||||||
|
|
||||||
if (event.stdout === '' && event.event === EVENT_NOTIFY_PLAYBOOK) {
|
|
||||||
return { html: '', count: 0 };
|
|
||||||
}
|
|
||||||
|
|
||||||
if (event.stdout === '' && event.event === EVENT_RUNNER_OK) {
|
|
||||||
return { html: '', count: 0 };
|
return { html: '', count: 0 };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user