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
ef765d3a57
commit
239be33303
@ -67,7 +67,7 @@ class Condition:
|
|||||||
"""
|
"""
|
||||||
def _get(obj, key):
|
def _get(obj, key):
|
||||||
if isinstance(obj, list):
|
if isinstance(obj, list):
|
||||||
return [i.get(key) for i in obj]
|
return [dict.get(i, key) for i in obj]
|
||||||
|
|
||||||
return dict.get(obj, key)
|
return dict.get(obj, key)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user