diff --git a/plugins/filter/listify.py b/plugins/filter/listify.py index 8029fa4d7..2bb090b25 100644 --- a/plugins/filter/listify.py +++ b/plugins/filter/listify.py @@ -280,6 +280,7 @@ def listify_worker(d, keys, depth, cache, prefix): if k == keys[depth + 1] and isinstance(v, (dict, list)): for result in listify_worker({k: v}, keys, depth + 1, cache_work, prefix): yield result + # Conditional to support nested dictionaries which are detected by item is string elif isinstance(item, str) and isinstance(d[keys[depth]], dict): for result in listify_worker({item: d[keys[depth]][item]}, keys, depth + 1, cache_work, prefix): yield result