Skip to content

Commit 9e51a8d

Browse files
arthansonjeremystretch
authored andcommitted
10999 fix power utilization on Device detail
1 parent f59c669 commit 9e51a8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netbox/templates/dcim/device.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ <h5 class="card-header">
229229
<th>Utilization</th>
230230
</tr>
231231
{% for powerport in object.powerports.all %}
232-
{% with utilization=powerport.get_power_draw powerfeed=powerport.connected_endpoint %}
232+
{% with utilization=powerport.get_power_draw powerfeed=powerport.connected_endpoints.0 %}
233233
<tr>
234234
<td>{{ powerport }}</td>
235235
<td>{{ utilization.outlet_count }}</td>

0 commit comments

Comments
 (0)