From 72722c7e0688c42e0c80530d087c35868309f17e Mon Sep 17 00:00:00 2001 From: Ivan Orlov Date: Tue, 7 Nov 2023 01:24:40 +0000 Subject: [PATCH] Fix bug in `tools/topo-lookup.py` --- tools/topo-lookup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/topo-lookup.py b/tools/topo-lookup.py index 6972c62aa4..5bb69be247 100755 --- a/tools/topo-lookup.py +++ b/tools/topo-lookup.py @@ -65,6 +65,7 @@ def print_physical_hosts(instances: List[Instance]): print("Physical hosts: VM Name") prev_cluster, prev_rack, prev_host = None, None, None for vm_name, physical_host in sorted(physical_hosts.items(), key=lambda item: item[1]): + if not physical_host: continue current_cluster, current_rack, current_host = physical_host.split("/")[1:] temp = current_cluster, current_rack, current_host current_cluster = _dotify(current_cluster, prev_cluster)