Skip to content

Commit 2686f9a

Browse files
committed
rebaseme: make linter happy
Signed-off-by: Benjamin Reis <[email protected]>
1 parent 208151d commit 2686f9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins-base/XSFeatureInterface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def __init__(self):
5454
self.nicMenu = Menu(self, None, "Configure Management Interface", choiceDefs)
5555

5656
mode_choicedefs = []
57-
if(currentPIF['primary_address_type'].lower() == 'ipv6'):
57+
if(currentPIF and currentPIF['primary_address_type'].lower() == 'ipv6'):
5858
mode_choicedefs.append(ChoiceDef(Lang("Autoconf"), lambda : self.HandleModeChoice("AUTOCONF") ))
5959
mode_choicedefs.append(ChoiceDef(Lang("DHCP"), lambda: self.HandleModeChoice('DHCP2') ))
6060
mode_choicedefs.append(ChoiceDef(Lang("DHCP with Manually Assigned Hostname"),

0 commit comments

Comments
 (0)