Merge pull request #31 from fretterick/use-UNRESPONSIVE_HOURS-node-overview
UNRESPONSIVE_HOURS not used for node overview
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user