Skip to content

Commit 843f73c

Browse files
committed
Improve robustness of getting router_subtype key
Signed-off-by: Xin Wang <xiwang5@microsoft.com>
1 parent 49fe942 commit 843f73c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/common/devices/multi_asic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def critical_services_tracking_list(self):
8383

8484
# NOTE: Add mux to critical services for dualtor
8585
if (
86-
self.facts['router_subtype'] == 'DualToR' and
86+
self.facts.get('router_subtype', '') == 'DualToR' and
8787
self.facts.get('features', {}).get('mux', {}).get('state', '') == 'enabled'
8888
):
8989
service_list.append("mux")

0 commit comments

Comments
 (0)