From 6139accd1ed5c4e49616dffcaee3940756db34f3 Mon Sep 17 00:00:00 2001 From: Haijiao Zhao Date: Thu, 31 Oct 2024 22:40:40 -0400 Subject: [PATCH] Fixup:no default value when trying to get parameter value Signed-off-by: Haijiao Zhao --- .../connectivity/connectivity_check_ethernet_interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvirt/tests/src/virtual_network/connectivity/connectivity_check_ethernet_interface.py b/libvirt/tests/src/virtual_network/connectivity/connectivity_check_ethernet_interface.py index 7f0d5b5fd4..77800e05a6 100644 --- a/libvirt/tests/src/virtual_network/connectivity/connectivity_check_ethernet_interface.py +++ b/libvirt/tests/src/virtual_network/connectivity/connectivity_check_ethernet_interface.py @@ -55,7 +55,7 @@ def run(test, params, env): iface_mtu = params.get('iface_mtu') iface_mtu_2 = params.get('iface_mtu_2') iface_attrs = eval(params.get('iface_attrs')) - iface_attrs_2 = eval(params.get('iface_attrs_2')) + iface_attrs_2 = eval(params.get('iface_attrs_2', '{}')) iface_amount = params.get('iface_amount') outside_ip = params.get('outside_ip') host_iface = params.get('host_iface')