diff --git a/netbox/dcim/tables/devices.py b/netbox/dcim/tables/devices.py index 90e6b4863..d4c9641b6 100644 --- a/netbox/dcim/tables/devices.py +++ b/netbox/dcim/tables/devices.py @@ -360,15 +360,9 @@ class CableTerminationTable(NetBoxTable): ) def value_link_peer(self, value): - string = "" - for termination in value: - if value and not str: - string += " " - if termination.parent_object: - string += f"{termination.parent_object} > " - string += str(termination) - - return string + return ', '.join([ + f"{termination.parent_object} > {termination}" for termination in value + ]) class PathEndpointTable(CableTerminationTable):