Wrong variable...

This commit is contained in:
Joseph Kennedy 2017-08-26 23:37:05 -04:00
parent b9060d846c
commit f3abe1da44

View File

@ -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