mirror of
https://github.com/netbox-community/netbox.git
synced 2026-01-11 21:10:29 +01:00
RackType has no airflow attribute
This commit is contained in:
@@ -69,7 +69,6 @@ class RackTypePanel(panels.ObjectAttributesPanel):
|
||||
manufacturer = attrs.ObjectAttr('manufacturer', linkify=True)
|
||||
model = attrs.TextAttr('model')
|
||||
description = attrs.TextAttr('description')
|
||||
airflow = attrs.ChoiceAttr('airflow')
|
||||
|
||||
|
||||
class DevicePanel(panels.ObjectAttributesPanel):
|
||||
|
||||
@@ -232,5 +232,8 @@ def resolve_attr_path(obj, path):
|
||||
for part in path.split('.'):
|
||||
if cur is None:
|
||||
return None
|
||||
cur = getattr(cur, part) if hasattr(cur, part) else cur.get(part)
|
||||
try:
|
||||
cur = getattr(cur, part) if hasattr(cur, part) else cur.get(part)
|
||||
except AttributeError:
|
||||
cur = None
|
||||
return cur
|
||||
|
||||
Reference in New Issue
Block a user