diff --git a/puppetboard/app.py b/puppetboard/app.py index ed1a52f..c203b6f 100644 --- a/puppetboard/app.py +++ b/puppetboard/app.py @@ -116,6 +116,7 @@ def index(): 'unchanged': 0, 'failed': 0, 'unreported': 0, + 'noop': 0 } for node in nodes: @@ -125,6 +126,8 @@ def index(): stats['changed'] += 1 elif node.status == 'failed': stats['failed'] += 1 + elif node.status == 'noop': + stats['noop'] += 1 else: stats['unchanged'] += 1 diff --git a/puppetboard/templates/index.html b/puppetboard/templates/index.html index 2aac1fd..a7dec4e 100644 --- a/puppetboard/templates/index.html +++ b/puppetboard/templates/index.html @@ -1,7 +1,7 @@ {% extends 'layout.html' %} {% block content %}
-
+ -
+
+
+

{{metrics['num_nodes']}}

Population @@ -70,6 +81,8 @@ green {% elif node.status == 'unreported' %} black + {% elif node.status == 'noop' %} + blue {% endif %} " href="{{url_for('report_latest', node_name=node.name)}}"> {{node.status}} diff --git a/puppetboard/templates/nodes.html b/puppetboard/templates/nodes.html index 2b317e3..4bc2b68 100644 --- a/puppetboard/templates/nodes.html +++ b/puppetboard/templates/nodes.html @@ -24,6 +24,8 @@ green {% elif node.status == 'unreported' %} black + {% elif node.status == 'noop' %} + blue {% endif %} " href="{{url_for('report_latest', node_name=node.name)}}"> {{node.status}}