Job detail page

Improved unreachable host count in tasks status bar. Once a host is unreachable it shows as missing in subsequent tasks, which is the expected result as it is skipped but not really marked as skipped.
This commit is contained in:
Chris Houseknecht
2014-07-01 14:29:45 -04:00
parent 86586a87eb
commit 44fdddd345
2 changed files with 6 additions and 5 deletions

View File

@@ -200,7 +200,6 @@ function JobDetailController ($rootScope, $scope, $compile, $routeParams, $log,
status_text = "Failed";
break;
case "unreachable":
status = "failed";
status_text = "Unreachable";
break;
case "skipped":
@@ -303,6 +302,10 @@ function JobDetailController ($rootScope, $scope, $compile, $routeParams, $log,
taskActiveClass: '',
hostResults: {}
};
if (play.firstTask !== event.id) {
// this is not the first task
play.tasks[event.id].hostCount = play.tasks[play.firstTask].hostCount;
}
SetTaskStyles({
task: play.tasks[event.id]
});
@@ -731,7 +734,6 @@ function JobDetailController ($rootScope, $scope, $compile, $routeParams, $log,
status_text = "Failed";
break;
case "unreachable":
status = "failed";
status_text = "Unreachable";
break;
case "skipped":
@@ -803,7 +805,6 @@ function JobDetailController ($rootScope, $scope, $compile, $routeParams, $log,
status_text = "Failed";
break;
case "unreachable":
status = "failed";
status_text = "Unreachable";
break;
case "skipped":