1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #5184: Fix missing Power Utilization

This commit is contained in:
kobayashi
2020-09-27 16:32:42 -04:00
parent ff42c89cc4
commit 5c8694ad65
2 changed files with 3 additions and 2 deletions

View File

@ -6,6 +6,7 @@
* [#5174](https://github.com/netbox-community/netbox/issues/5174) - Ensure consistent alignment of rack elevations
* [#5175](https://github.com/netbox-community/netbox/issues/5175) - Fix toggling of rack elevation order
* [#5184](https://github.com/netbox-community/netbox/issues/5184) - Fix missing Power Utilization
---

View File

@ -326,7 +326,7 @@
{% plugin_left_page device %}
</div>
<div class="col-md-6">
{% if power_ports and poweroutlets %}
{% if powerports and poweroutlets %}
<div class="panel panel-default">
<div class="panel-heading">
<strong>Power Utilization</strong>
@ -339,7 +339,7 @@
<th>Available</th>
<th>Utilization</th>
</tr>
{% for pp in power_ports %}
{% for pp in powerports %}
{% with utilization=pp.get_power_draw powerfeed=pp.connected_endpoint %}
<tr>
<td>{{ pp }}</td>