Procházet zdrojové kódy

Corrected linter warning

Saria Hajjar před 6 roky
rodič
revize
ff822743cc
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      netbox/dcim/models/device_components.py

+ 1 - 1
netbox/dcim/models/device_components.py

@@ -676,7 +676,7 @@ class Interface(CableTermination, ComponentModel):
             self.untagged_vlan = None
 
         # 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()
 
         return super().save(*args, **kwargs)