mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 03:41:25 -07:00
fixed type mapper and added tests (#20963)
This commit is contained in:
parent
8d5f4dda06
commit
c33812450e
2 changed files with 13 additions and 1 deletions
|
@ -618,5 +618,5 @@ def map_complex_type(complex_type, type_map):
|
|||
complex_type[i],
|
||||
type_map))
|
||||
elif type_map:
|
||||
return vars(globals()['__builtins__'])[type_map](complex_type)
|
||||
return globals()['__builtins__'][type_map](complex_type)
|
||||
return new_type
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue