From b728896fea58fe9653509e61ba817b836b71d837 Mon Sep 17 00:00:00 2001 From: Frederik Happel Date: Wed, 6 Nov 2013 13:00:10 +0100 Subject: [PATCH] use unreported=app.config['UNRESPONSIVE_HOURS'] for node overview as well --- puppetboard/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/puppetboard/app.py b/puppetboard/app.py index 7fcaa31..b10eb70 100644 --- a/puppetboard/app.py +++ b/puppetboard/app.py @@ -147,7 +147,7 @@ def nodes(): """ status_arg = request.args.get('status', '') nodes = [] - for node in yield_or_stop(puppetdb.nodes(with_status=True)): + for node in yield_or_stop(puppetdb.nodes(unreported=app.config['UNRESPONSIVE_HOURS'], with_status=True)): if status_arg: if node.status == status_arg: nodes.append(node)