Commit 218bdfd1 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Device component:

- Fix Topological Sort of sub_devices
parent da6d2d92
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -313,6 +313,7 @@ def populate_endpoints(
    try:
        ts = TopologicalSorter(graph)
        sorted_sub_device_uuids.extend(list(ts.static_order()))
        if device_uuid in sorted_sub_device_uuids:
            sorted_sub_device_uuids.remove(device_uuid)
    except CycleError:
        MSG = 'Topological sort failed due to cycle among sub-devices({:s}), graph({:s})'