Merge pull request #31 from fretterick/use-UNRESPONSIVE_HOURS-node-overview

UNRESPONSIVE_HOURS not used for node overview
This commit is contained in:
Daniele Sluijters
2013-11-06 04:05:22 -08:00

View File

@@ -147,7 +147,7 @@ def nodes():
""" """
status_arg = request.args.get('status', '') status_arg = request.args.get('status', '')
nodes = [] 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 status_arg:
if node.status == status_arg: if node.status == status_arg:
nodes.append(node) nodes.append(node)