mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-02-04 16:01:55 +00:00
Add comment that transform_recursively should no longer be needed.
(cherry picked from commit 3b5a9779b4)
This commit is contained in:
parent
3fdb4d4afb
commit
ee601d3036
1 changed files with 3 additions and 0 deletions
|
|
@ -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)):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue