mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-15 20:18:17 -06:00
Fix PEP8 indenting errors
This commit is contained in:
parent
f7d96beffa
commit
81d9f3b7b0
@ -2862,20 +2862,20 @@ class Cable(ChangeLoggedModel):
|
||||
endpoint_a, endpoint_b, _ = self.get_path_endpoints()
|
||||
if (
|
||||
(
|
||||
isinstance(endpoint_a, Interface) and
|
||||
endpoint_a.type in NONCONNECTABLE_IFACE_TYPES
|
||||
isinstance(endpoint_a, Interface) and
|
||||
endpoint_a.type in NONCONNECTABLE_IFACE_TYPES
|
||||
) or
|
||||
(
|
||||
isinstance(endpoint_b, Interface) and
|
||||
endpoint_b.type in NONCONNECTABLE_IFACE_TYPES
|
||||
isinstance(endpoint_b, Interface) and
|
||||
endpoint_b.type in NONCONNECTABLE_IFACE_TYPES
|
||||
) or
|
||||
(
|
||||
isinstance(self.termination_a, Interface) and
|
||||
self.termination_a.type in NONCONNECTABLE_IFACE_TYPES
|
||||
isinstance(self.termination_a, Interface) and
|
||||
self.termination_a.type in NONCONNECTABLE_IFACE_TYPES
|
||||
) or
|
||||
(
|
||||
isinstance(self.termination_b, Interface) and
|
||||
self.termination_b.type in NONCONNECTABLE_IFACE_TYPES
|
||||
isinstance(self.termination_b, Interface) and
|
||||
self.termination_b.type in NONCONNECTABLE_IFACE_TYPES
|
||||
)
|
||||
):
|
||||
raise ValidationError("Cannot connect to a virtual or wireless interface")
|
||||
|
Loading…
Reference in New Issue
Block a user