mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 20:12:00 -06:00
Corrected linter warning
This commit is contained in:
parent
deb653cbf3
commit
ff822743cc
@ -676,7 +676,7 @@ class Interface(CableTermination, ComponentModel):
|
|||||||
self.untagged_vlan = None
|
self.untagged_vlan = None
|
||||||
|
|
||||||
# Only "tagged" interfaces may have tagged VLANs assigned. ("tagged all" implies all VLANs are assigned.)
|
# Only "tagged" interfaces may have tagged VLANs assigned. ("tagged all" implies all VLANs are assigned.)
|
||||||
if self.pk and self.mode is not InterfaceModeChoices.MODE_TAGGED:
|
if self.pk and self.mode != InterfaceModeChoices.MODE_TAGGED:
|
||||||
self.tagged_vlans.clear()
|
self.tagged_vlans.clear()
|
||||||
|
|
||||||
return super().save(*args, **kwargs)
|
return super().save(*args, **kwargs)
|
||||||
|
Loading…
Reference in New Issue
Block a user