Pretty print data from Query tab (#257)
This commit is contained in:
committed by
Corey Hammerton
parent
fac55edc98
commit
4887588662
@@ -21,7 +21,7 @@ from pypuppetdb import connect
|
||||
from puppetboard.forms import (CatalogForm, QueryForm)
|
||||
from puppetboard.utils import (
|
||||
get_or_abort, yield_or_stop,
|
||||
jsonprint, Pagination
|
||||
jsonprint, prettyprint, Pagination
|
||||
)
|
||||
|
||||
|
||||
@@ -34,6 +34,7 @@ graph_facts += app.config['GRAPH_FACTS']
|
||||
app.secret_key = app.config['SECRET_KEY']
|
||||
|
||||
app.jinja_env.filters['jsonprint'] = jsonprint
|
||||
app.jinja_env.filters['prettyprint'] = prettyprint
|
||||
|
||||
puppetdb = connect(
|
||||
host=app.config['PUPPETDB_HOST'],
|
||||
|
||||
Reference in New Issue
Block a user