@app.route('/catalog/<node_name>', defaults={'env': app.config['DEFAULT_ENVIRONMENT']})
@app.route('/<env>/catalog/<node_name>')
def catalog_node(env, node_name):
    envs = environments()
    check_env(env, envs)

    if app.config['ENABLE_CATALOG']:
        catalog = get_or_abort(puppetdb.catalog,
            node=node_name)
        return render_template('catalog.html',
            catalog=catalog,
            envs=envs,
            current_env=env)
    else:
        log.warn('Access to catalog interface disabled by administrator')
        abort(403)
Fetches from PuppetDB the compiled catalog of a given node.
dataset/ETHPy150Open voxpupuli/puppetboard/puppetboard/app.py/catalog_node