From 2686f9a02f057d22c9413c0f1f48463464ec2ebb 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 df34f03..5e6c148 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"),