From 0d0b617b618121936a7326d77d2d370fdc7334e2 Mon Sep 17 00:00:00 2001 From: Zhixin Zhu <44230426+zhixzhu@users.noreply.github.com> Date: Fri, 29 Nov 2024 16:37:43 +1100 Subject: [PATCH] fix pre-commit error. --- tests/conftest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index 5a462301077..d1f7b81f2bd 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -655,7 +655,8 @@ def nbrhosts(enhance_inventory, ansible_adhoc, tbinfo, creds, request): """ logger.info("Fixture nbrhosts started") devices = {} - if (not tbinfo['vm_base'] and 'tgen' in tbinfo['topo']['name']) or 'ptf' in tbinfo['topo']['name'] or 'ixia' in tbinfo['topo']['name']: + if (not tbinfo['vm_base'] and 'tgen' in tbinfo['topo']['name']) or 'ptf' in tbinfo['topo']['name'] or \ + 'ixia' in tbinfo['topo']['name']: logger.info("No VMs exist for this topology: {}".format(tbinfo['topo']['name'])) return devices