mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Use yaml.safe_dump rather than yaml.dump. No more "!!python/unicode".
This commit is contained in:
@@ -25,7 +25,7 @@ class FilterModule(object):
|
|||||||
return {
|
return {
|
||||||
'to_json': json.dumps,
|
'to_json': json.dumps,
|
||||||
'from_json': json.loads,
|
'from_json': json.loads,
|
||||||
'to_yaml': yaml.dump,
|
'to_yaml': yaml.safe_dump,
|
||||||
'from_yaml': yaml.load,
|
'from_yaml': yaml.load,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user