Skip to content

Commit

Permalink
rebaseme: make linter happy
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Reis <[email protected]>
  • Loading branch information
benjamreis committed Jun 19, 2024
1 parent f1ec99a commit e792a7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins-base/XSFeatureInterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit e792a7a

Please sign in to comment.