mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Add comment that transform_recursively should no longer be needed.
(cherry picked from commit 3b5a9779b4)
This commit is contained in:
@@ -119,6 +119,9 @@ except ImportError:
|
|||||||
|
|
||||||
|
|
||||||
def transform_recursively(value, transform):
|
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):
|
if isinstance(value, Mapping):
|
||||||
return {transform(k): transform(v) for k, v in value.items()}
|
return {transform(k): transform(v) for k, v in value.items()}
|
||||||
if isinstance(value, Sequence) and not isinstance(value, (str, bytes)):
|
if isinstance(value, Sequence) and not isinstance(value, (str, bytes)):
|
||||||
|
|||||||
Reference in New Issue
Block a user