mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-26 09:16:10 -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):
|
if isinstance(obj, list):
|
||||||
return [i.get(key) for i in obj]
|
return [i.get(key) for i in obj]
|
||||||
|
|
||||||
return obj.get(key)
|
return dict.get(obj, key)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
value = functools.reduce(_get, self.attr.split('.'), data)
|
value = functools.reduce(_get, self.attr.split('.'), data)
|
||||||
|
Loading…
Reference in New Issue
Block a user