From f9d1280fa963118e8a423d28ac0686b1eb55b25b Mon Sep 17 00:00:00 2001 From: Isaac Yang <47034756+seankingyang@users.noreply.github.com> Date: Mon, 14 Oct 2024 18:00:02 +0800 Subject: [PATCH] Update providers/base/bin/wifi_client_test_netplan.py Co-authored-by: Massimiliano --- providers/base/bin/wifi_client_test_netplan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/base/bin/wifi_client_test_netplan.py b/providers/base/bin/wifi_client_test_netplan.py index 28e4cb503..e8d5b4fd1 100755 --- a/providers/base/bin/wifi_client_test_netplan.py +++ b/providers/base/bin/wifi_client_test_netplan.py @@ -337,7 +337,7 @@ def __validate_ip(ip): def get_gateway(interface, renderer): info = get_interface_info(interface, renderer) - gateway = info.get("gateway") + gateway = info.get("gateway") or "" validated_gateway = _validate_gateway_ip(gateway) print("Got gateway address: {}".format(gateway)) print("Validated gateway address: {}".format(validated_gateway))