From 81d9f3b7b05aa0cf240f2a922a608f8d696011b3 Mon Sep 17 00:00:00 2001 From: Daniel Sheppard Date: Tue, 24 Sep 2019 11:59:23 -0500 Subject: [PATCH] Fix PEP8 indenting errors --- netbox/dcim/models.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/netbox/dcim/models.py b/netbox/dcim/models.py index 466149905..e33cb8a8c 100644 --- a/netbox/dcim/models.py +++ b/netbox/dcim/models.py @@ -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")