don't render playbook_on_start events

This commit is contained in:
Jake McDermott 2018-09-06 11:53:25 -04:00
parent 0e696d0515
commit 093f453073
No known key found for this signature in database
GPG Key ID: 9A6F084352C3A0B7

View File

@ -3,6 +3,7 @@ import Entities from 'html-entities';
import {
EVENT_START_PLAY,
EVENT_START_PLAYBOOK,
EVENT_STATS_PLAY,
EVENT_START_TASK,
OUTPUT_ANSI_COLORMAP,
@ -208,6 +209,10 @@ 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 };
}
let html = '';
let count = lines.length;
let ln = event.start_line;