1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-02-04 07:51:50 +00:00

Add comment that transform_recursively should no longer be needed.

This commit is contained in:
Felix Fontein 2025-06-29 09:50:46 +02:00
parent 5462b1cff8
commit 3b5a9779b4

View file

@ -119,6 +119,9 @@ except ImportError:
def transform_recursively(value, transform):
# Since 2.19.0b7, this should no longer be needed:
# https://github.com/ansible/ansible/issues/85325
# https://github.com/ansible/ansible/pull/85389
if isinstance(value, Mapping):
return {transform(k): transform(v) for k, v in value.items()}
if isinstance(value, Sequence) and not isinstance(value, (str, bytes)):