From f3abe1da4491372740b04bb1a6fbc13706160750 Mon Sep 17 00:00:00 2001 From: Joseph Kennedy Date: Sat, 26 Aug 2017 23:37:05 -0400 Subject: [PATCH] Wrong variable... --- netbox/dcim/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/dcim/forms.py b/netbox/dcim/forms.py index 933e6b626..bc0361b49 100644 --- a/netbox/dcim/forms.py +++ b/netbox/dcim/forms.py @@ -1607,7 +1607,7 @@ class InterfaceCSVForm(forms.ModelForm): device=device_id, form_factor=IFACE_FF_LAG).get( lag=lag_name.id ) - if lag is not None: + if not lag_name: return None return lag