mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-26 01:06:11 -06:00
fixes incorrectly handled type error when list of objects is found in data #9876
This commit is contained in:
parent
cdbb3827fe
commit
ef765d3a57
@ -69,7 +69,7 @@ class Condition:
|
||||
if isinstance(obj, list):
|
||||
return [i.get(key) for i in obj]
|
||||
|
||||
return obj.get(key)
|
||||
return dict.get(obj, key)
|
||||
|
||||
try:
|
||||
value = functools.reduce(_get, self.attr.split('.'), data)
|
||||
|
Loading…
Reference in New Issue
Block a user