Merge pull request #214 from corey-hammerton/issue-213

templates/index: Directly referencing config.REFRESH_RATE
This commit is contained in:
Corey Hammerton
2016-02-01 20:44:24 -05:00
2 changed files with 2 additions and 4 deletions

View File

@@ -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
)