From e792a7ac9773415f7cdd8555ee4c72e885f5b4d7 Mon Sep 17 00:00:00 2001 From: Benjamin Reis Date: Fri, 16 Feb 2024 09:08:09 +0100 Subject: [PATCH] rebaseme: make linter happy Signed-off-by: Benjamin Reis --- plugins-base/XSFeatureInterface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins-base/XSFeatureInterface.py b/plugins-base/XSFeatureInterface.py index 1a2de0d..e5cf547 100644 --- a/plugins-base/XSFeatureInterface.py +++ b/plugins-base/XSFeatureInterface.py @@ -54,7 +54,7 @@ def __init__(self): self.nicMenu = Menu(self, None, "Configure Management Interface", choiceDefs) mode_choicedefs = [] - if(currentPIF['primary_address_type'].lower() == 'ipv6'): + if(currentPIF and currentPIF['primary_address_type'].lower() == 'ipv6'): mode_choicedefs.append(ChoiceDef(Lang("Autoconf"), lambda : self.HandleModeChoice("AUTOCONF") )) mode_choicedefs.append(ChoiceDef(Lang("DHCP"), lambda: self.HandleModeChoice('DHCP2') )) mode_choicedefs.append(ChoiceDef(Lang("DHCP with Manually Assigned Hostname"),