From 8cf268441e82da0348020bee344d8728a9f41ea8 Mon Sep 17 00:00:00 2001 From: Piotr Roszatycki Date: Mon, 4 Feb 2013 13:40:07 +0100 Subject: [PATCH] Use yaml.safe_dump rather than yaml.dump. No more "!!python/unicode". --- lib/ansible/runner/filter_plugins/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/runner/filter_plugins/core.py b/lib/ansible/runner/filter_plugins/core.py index 63eec29678b..51a1f827e59 100644 --- a/lib/ansible/runner/filter_plugins/core.py +++ b/lib/ansible/runner/filter_plugins/core.py @@ -25,7 +25,7 @@ class FilterModule(object): return { 'to_json': json.dumps, 'from_json': json.loads, - 'to_yaml': yaml.dump, + 'to_yaml': yaml.safe_dump, 'from_yaml': yaml.load, }