From c25af96c56177ae0bb589f7c4b5a7d2bcb3d6573 Mon Sep 17 00:00:00 2001 From: Jake McDermott Date: Mon, 5 Nov 2018 14:59:15 -0500 Subject: [PATCH] don't render events if stdout is zero-length string --- awx/ui/client/features/output/render.service.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/awx/ui/client/features/output/render.service.js b/awx/ui/client/features/output/render.service.js index 386a19fe05..a10beb29b2 100644 --- a/awx/ui/client/features/output/render.service.js +++ b/awx/ui/client/features/output/render.service.js @@ -2,10 +2,7 @@ import Ansi from 'ansi-to-html'; import Entities from 'html-entities'; import { - EVENT_NOTIFY_PLAYBOOK, - EVENT_RUNNER_OK, EVENT_START_PLAY, - EVENT_START_PLAYBOOK, EVENT_STATS_PLAY, EVENT_START_TASK, OUTPUT_ANSI_COLORMAP, @@ -211,15 +208,7 @@ function JobRenderService ($q, $sce, $window) { const lines = stdout.split('\r\n'); const record = this.createRecord(event, lines); - if (event.event === EVENT_START_PLAYBOOK) { - return { html: '', count: 0 }; - } - - if (event.stdout === '' && event.event === EVENT_NOTIFY_PLAYBOOK) { - return { html: '', count: 0 }; - } - - if (event.stdout === '' && event.event === EVENT_RUNNER_OK) { + if (lines.length === 1 && lines[0] === '') { return { html: '', count: 0 }; }