Skip to content
Snippets Groups Projects
Commit 755a4e3b authored by Erik Reid's avatar Erik Reid
Browse files

Finished feature DBOARD3-242-debugging.

parents cd83066e 10553d29
No related branches found
No related tags found
No related merge requests found
......@@ -110,7 +110,6 @@ def load_task_log():
if 'task-received' in task:
event = task['task-received'][0]
description = f'{event["name"]}{event["args"]}'
description += f':{event["uuid"]}'
if 'task-failed' in task:
if not description:
......
......@@ -74,7 +74,7 @@ def walk(agent_hostname, community, base_oid): # pragma: no cover
'snmp response pdu error %r at %r' % (
pduErrorIndication,
errorIndex and varBinds[int(errorIndex) - 1][0] or '?'))
if errorIndex == 0:
if errorIndex != 0:
raise SNMPWalkError(
'sanity failure: errorIndex != 0, '
'but no error indication')
......
......@@ -13,57 +13,66 @@
<body>
<div ng-controller="update">
<div class="grid-container">
<div class="grid-item">
<div class="container p-3 my-3">
<button type="button"
class="btn btn-primary btn-lg"
ng-click="launch_update()"
ng-disabled="latch_pending">Update Inventory Provider</button>
</div>
<div class="grid-item" ng-class="latch_error||update_request_error ? 'error' : 'ok'">
<div class="container p-3 my-3 border" ng-class="latch_error||update_request_error ? 'error' : 'ok'">
{{ latch_info }}
</div>
<div class="grid-item" ng-class="update_request_error ? 'error' : 'ok'">
<div class="container p-3 my-3" ng-class="update_request_error ? 'error' : 'ok'">
{{ update_request_status }}
</div>
<span class="grid-item" ng-show="errors.length">
<div class="container p-3 my-3 border" ng-show="errors.length">
<table class="table table-striped" summary="error messages">
<tr>
<th scope="col">errorss</th>
<th>
<button ng-click="show_errors=!show_errors">{{show_errors ? "hide" : "show"}}</button>
</th>
<th scope="col">errors</th>
</tr>
<tr ng-repeat="description in errors">
<tr ng-if="show_errors" ng-repeat="description in errors">
<td>{{ description }}</td>
</tr>
</table>
</span>
</div>
<span class="grid-item" ng-show="warnings.length">
<div class="container p-3 my-3 border" ng-show="warnings.length">
<table class="table table-striped" summary="warning messages">
<tr>
<th>
<button ng-click="show_warnings=!show_warnings">{{show_warnings ? "hide" : "show"}}</button>
</th>
<th scope="col">warnings</th>
</tr>
<tr ng-repeat="description in warnings">
<tr ng-if="show_warnings" ng-repeat="description in warnings">
<td></td>
<td>{{ description }}</td>
</tr>
</table>
</span>
</div>
<span class="grid-item" ng-show="pending.length">
<div class="container p-3 my-3 border" ng-show="pending.length">
<table class="table table-striped" summary="pending tasks">
<tr>
<th>
<button ng-click="show_pending=!show_pending">{{show_pending ? "hide" : "show"}}</button>
</th>
<th scope="col">pending tasks</th>
</tr>
<tr ng-repeat="description in pending">
<tr ng-if="show_pending" ng-repeat="description in pending">
<td>{{ description }}</td>
</tr>
</table>
</span>
</div>
</div>
</div>
</body>
</html>
\ No newline at end of file
......@@ -14,6 +14,10 @@ myApp.controller('update', function($scope, $http, $timeout) {
$scope.errors = [];
$scope.warnings = [];
$scope.show_warnings = true;
$scope.show_errors = true;
$scope.show_pending = true;
$scope.check_status = function() {
$http({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment