diff --git a/awx/ui/client/features/output/constants.js b/awx/ui/client/features/output/constants.js index e8880587b1..5db41c31d4 100644 --- a/awx/ui/client/features/output/constants.js +++ b/awx/ui/client/features/output/constants.js @@ -1,6 +1,8 @@ export const API_MAX_PAGE_SIZE = 200; export const API_ROOT = '/api/v2/'; +export const EVENT_NOTIFY_PLAYBOOK = 'playbook_on_notify'; +export const EVENT_RUNNER_OK = 'runner_on_ok'; export const EVENT_START_TASK = 'playbook_on_task_start'; export const EVENT_START_PLAY = 'playbook_on_play_start'; export const EVENT_START_PLAYBOOK = 'playbook_on_start'; diff --git a/awx/ui/client/features/output/render.service.js b/awx/ui/client/features/output/render.service.js index 6111cbbe8d..386a19fe05 100644 --- a/awx/ui/client/features/output/render.service.js +++ b/awx/ui/client/features/output/render.service.js @@ -2,6 +2,8 @@ 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, @@ -213,6 +215,14 @@ function JobRenderService ($q, $sce, $window) { 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 }; + } + let html = ''; let count = lines.length; let ln = event.start_line;