HomePhorge

Using new Node and Catalog fields available in pypuppetdb 0.2.1

Description

Using new Node and Catalog fields available in pypuppetdb 0.2.1

Showing the Code ID field in the catalogs page. This is currently
unused in PuppetDB as of 3.2.2 but may be useful when it will be used

If available, using the latest_report_hash field of the node object
in the index and nodes templates for the link to the latest report
available for the node.

Updating the report_latest function in app.py to query the nodes
endpoint and redirecting using the latest_report_hash field if available.
If not query the reports endpoint for the node's latest report.