From ee6b244914c893f4640f6b12b6b31b9c5ce940b1 Mon Sep 17 00:00:00 2001 From: Jan Tluka Date: Fri, 2 Feb 2024 10:48:27 +0100 Subject: [PATCH] Recipes/SRIOVNetnsOvSRecipe.py: remove unused iterators Signed-off-by: Jan Tluka --- lnst/Recipes/ENRT/SRIOVNetnsOvSRecipe.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lnst/Recipes/ENRT/SRIOVNetnsOvSRecipe.py b/lnst/Recipes/ENRT/SRIOVNetnsOvSRecipe.py index a7168bde0..e5d41662d 100644 --- a/lnst/Recipes/ENRT/SRIOVNetnsOvSRecipe.py +++ b/lnst/Recipes/ENRT/SRIOVNetnsOvSRecipe.py @@ -103,7 +103,7 @@ def test_wide_configuration(self): ipv4_addr = interface_addresses(self.params.net_ipv4) ipv6_addr = interface_addresses(self.params.net_ipv6) - for i, host in enumerate([host1, host2]): + for host in [host1, host2]: host.run("systemctl enable openvswitch") host.run("systemctl start openvswitch") host.run("ovs-vsctl set Open_vSwitch . other_config:hw-offload=true") @@ -138,7 +138,7 @@ def test_wide_configuration(self): def generate_test_wide_description(self, config: EnrtConfiguration): desc = super().generate_test_wide_description(config) host1, host2 = self.matched.host1, self.matched.host2 - for i, host in enumerate([host1, host2]): + for host in [host1, host2]: desc += [ f"Configured {host.hostid}.{host.eth0.name}.driver = switchdev\n" f"Created virtual function on {host.hostid}.{host.eth0.name} = {host.newns.vf_eth0.name}\n"