mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 20:12:00 -06:00
Apply suggestions from code review
Co-authored-by: Jeremy Stretch <jstretch@ns1.com>
This commit is contained in:
parent
b07e88869a
commit
251abdb4dd
@ -56,11 +56,9 @@ def get_cabletermination_row_class(record):
|
|||||||
def get_interface_row_class(record):
|
def get_interface_row_class(record):
|
||||||
if not record.enabled:
|
if not record.enabled:
|
||||||
return 'danger'
|
return 'danger'
|
||||||
elif not record.is_connectable:
|
elif record.is_virtual:
|
||||||
return 'primary'
|
return 'primary'
|
||||||
else:
|
return get_cabletermination_row_class(record)
|
||||||
return get_cabletermination_row_class(record)
|
|
||||||
return ''
|
|
||||||
|
|
||||||
|
|
||||||
def get_interface_state_attribute(record):
|
def get_interface_state_attribute(record):
|
||||||
|
Loading…
Reference in New Issue
Block a user