Skip to content

Commit

Permalink
10999 fix power utilization on Device detail
Browse files Browse the repository at this point in the history
  • Loading branch information
arthanson authored and jeremystretch committed Nov 29, 2022
1 parent f59c669 commit 9e51a8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netbox/templates/dcim/device.html
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ <h5 class="card-header">
<th>Utilization</th>
</tr>
{% for powerport in object.powerports.all %}
{% with utilization=powerport.get_power_draw powerfeed=powerport.connected_endpoint %}
{% with utilization=powerport.get_power_draw powerfeed=powerport.connected_endpoints.0 %}
<tr>
<td>{{ powerport }}</td>
<td>{{ utilization.outlet_count }}</td>
Expand Down

0 comments on commit 9e51a8d

Please sign in to comment.