Styling changes from 5/9 status meeting.

This commit is contained in:
chouseknecht
2014-05-09 23:35:02 -04:00
parent bb071379c2
commit e9ddf51387
5 changed files with 117 additions and 50 deletions

View File

@@ -65,6 +65,7 @@ function(UpdatePlayStatus, UpdateHostStatus, UpdatePlayChild, AddHostResult, Sel
name: event.play,
created: event.created,
status: (event.failed) ? 'failed' : (event.changed) ? 'changed' : 'none',
elapsed: '00:00:00',
children: []
});
SelectPlay({
@@ -107,6 +108,15 @@ function(UpdatePlayStatus, UpdateHostStatus, UpdatePlayChild, AddHostResult, Sel
id: event.id
});
}
if (event.event === 'playbook_on_no_hosts_matched') {
UpdatePlayStatus({
scope: scope,
play_id: event.parent,
failed: true,
changed: false,
modified: event.modified
});
}
if (event.event === 'playbook_on_task_start') {
hostCount = GetHostCount({
scope: scope,
@@ -714,6 +724,9 @@ function(UpdatePlayStatus, UpdateHostStatus, UpdatePlayChild, AddHostResult, Sel
}, 700);
// Get current list of hosts from the API
// is the job done? if so, only select hosts for the last task?
Wait('start');
scope.hostResults = [];
url = GetBasePath('jobs') + $routeParams.id + '/job_events/?parent=' + id + '&';