Apply suggestions from code review

Co-authored-by: Jeremy Stretch <jstretch@ns1.com>
This commit is contained in:
CironAkono 2021-11-11 16:36:13 +00:00 committed by GitHub
parent b07e88869a
commit 251abdb4dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,11 +56,9 @@ def get_cabletermination_row_class(record):
def get_interface_row_class(record):
if not record.enabled:
return 'danger'
elif not record.is_connectable:
elif record.is_virtual:
return 'primary'
else:
return get_cabletermination_row_class(record)
return ''
return get_cabletermination_row_class(record)
def get_interface_state_attribute(record):