diff --git a/puppetboard/app.py b/puppetboard/app.py index 113eaf8..e58456e 100644 --- a/puppetboard/app.py +++ b/puppetboard/app.py @@ -140,7 +140,6 @@ def index(env): # TODO: Would be great if we could parallelize this somehow, doing these # requests in sequence is rather pointless. prefix = 'puppetlabs.puppetdb.query.population' - refreshrate = app.config['REFRESH_RATE'] num_nodes = get_or_abort( puppetdb.metric, "{0}{1}".format(prefix, ':type=default,name=num-nodes')) @@ -198,7 +197,6 @@ def index(env): nodes=nodes_overview, stats=stats, envs=envs, - refreshrate=refreshrate, current_env=env ) diff --git a/puppetboard/templates/index.html b/puppetboard/templates/index.html index dcfe7be..e841b62 100644 --- a/puppetboard/templates/index.html +++ b/puppetboard/templates/index.html @@ -1,8 +1,8 @@ {% extends 'layout.html' %} {% import '_macros.html' as macros %} {% block content %} -{% if refreshrate != 0 %} - +{% if config.REFRESH_RATE > 0 %} + {% endif %}