From 788e47b6931fe9f17e07b0750f2413355b8dc0ed Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Mon, 2 Feb 2015 19:21:26 -0800 Subject: [PATCH] Correct filter specification --- lib/ansible/runner/filter_plugins/core.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/ansible/runner/filter_plugins/core.py b/lib/ansible/runner/filter_plugins/core.py index 7a96179ff0..22ce73970c 100644 --- a/lib/ansible/runner/filter_plugins/core.py +++ b/lib/ansible/runner/filter_plugins/core.py @@ -329,11 +329,11 @@ class FilterModule(object): 'from_yaml': yaml.safe_load, # path - 'basename': unicode_wrap(os.path.basename), - 'dirname': unicode_wrap(os.path.dirname), - 'expanduser': unicode_wrap(os.path.expanduser), - 'realpath': unicode_wrap(os.path.realpath), - 'relpath': unicode_wrap(os.path.relpath), + 'basename': partial(unicode_wrap, os.path.basename), + 'dirname': partial(unicode_wrap, os.path.dirname), + 'expanduser': partial(unicode_wrap, os.path.expanduser), + 'realpath': partial(unicode_wrap, os.path.realpath), + 'relpath': partial(unicode_wrap, os.path.relpath), # failure testing 'failed' : failed,