Fixed trailing white space error.

This commit is contained in:
TheNetworkGuy 2024-05-22 09:23:07 +02:00
parent 60140b4b74
commit 78b9d5ae8b

View File

@ -416,7 +416,7 @@ class NetworkDevice():
for item in field_list: for item in field_list:
value = value[item] if value else None value = value[item] if value else None
# Check if the result is usable and expected # Check if the result is usable and expected
# We want to apply any int or float 0 values, # We want to apply any int or float 0 values,
# even if python thinks those are empty. # even if python thinks those are empty.
if ((value and isinstance(value, int | float | str )) or if ((value and isinstance(value, int | float | str )) or
(isinstance(value, int | float) and int(value) ==0)): (isinstance(value, int | float) and int(value) ==0)):