RackType has no airflow attribute

This commit is contained in:
Jeremy Stretch
2025-11-05 14:49:36 -05:00
parent 281cb4f586
commit 9d6522c11e
2 changed files with 4 additions and 2 deletions

View File

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

View File

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