nodes: Check PUPPETDB_API, not _EXPERIMENTAL.
This commit is contained in:
@@ -20,7 +20,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th>Hostname</th>
|
<th>Hostname</th>
|
||||||
<th>Catalog compiled at</th>
|
<th>Catalog compiled at</th>
|
||||||
{% if config.PUPPETDB_EXPERIMENTAL %}
|
{% if config.PUPPETDB_API > 2 %}
|
||||||
<th>Last report</th>
|
<th>Last report</th>
|
||||||
<th> </th>
|
<th> </th>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -31,7 +31,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td><a href="{{url_for('node', node_name=node.name)}}">{{node.name}}</a></td>
|
<td><a href="{{url_for('node', node_name=node.name)}}">{{node.name}}</a></td>
|
||||||
<td rel="utctimestamp">{{node.catalog_timestamp}}</td>
|
<td rel="utctimestamp">{{node.catalog_timestamp}}</td>
|
||||||
{% if config.PUPPETDB_EXPERIMENTAL %}
|
{% if config.PUPPETDB_API > 2 %}
|
||||||
<td>
|
<td>
|
||||||
{% if node.report_timestamp %}
|
{% if node.report_timestamp %}
|
||||||
<span rel="utctimestamp">{{ node.report_timestamp }}</span>
|
<span rel="utctimestamp">{{ node.report_timestamp }}</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user