mirror of
https://github.com/ansible/awx.git
synced 2026-03-24 04:15:02 -02:30
don't render playbook_on_notify or runner_on_ok events if they have no stdout
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
export const API_MAX_PAGE_SIZE = 200;
|
export const API_MAX_PAGE_SIZE = 200;
|
||||||
export const API_ROOT = '/api/v2/';
|
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_TASK = 'playbook_on_task_start';
|
||||||
export const EVENT_START_PLAY = 'playbook_on_play_start';
|
export const EVENT_START_PLAY = 'playbook_on_play_start';
|
||||||
export const EVENT_START_PLAYBOOK = 'playbook_on_start';
|
export const EVENT_START_PLAYBOOK = 'playbook_on_start';
|
||||||
|
|||||||
@@ -2,6 +2,8 @@ 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_START_PLAYBOOK,
|
||||||
EVENT_STATS_PLAY,
|
EVENT_STATS_PLAY,
|
||||||
@@ -213,6 +215,14 @@ function JobRenderService ($q, $sce, $window) {
|
|||||||
return { html: '', count: 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 };
|
||||||
|
}
|
||||||
|
|
||||||
let html = '';
|
let html = '';
|
||||||
let count = lines.length;
|
let count = lines.length;
|
||||||
let ln = event.start_line;
|
let ln = event.start_line;
|
||||||
|
|||||||
Reference in New Issue
Block a user