Commit f3a34144 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Device component:

- Fix Topological Sort of sub_devices
parent 765a22d5
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -300,7 +300,8 @@ def populate_endpoints(
    for dev_uuid, sub_device in new_sub_devices.items():
        predecesors = graph.setdefault(dev_uuid, set())
        ctrl_uuid = get_device_controller_uuid(sub_device)
        if ctrl_uuid is None: continue
        if ctrl_uuid is None: continue # sub_device has no controller
        if ctrl_uuid == device_uuid: continue # current device has no dependencies
        predecesors.add(ctrl_uuid)

    try: