diff options
author | Toshio Kuratomi <toshio@fedoraproject.org> | 2015-02-02 19:21:26 -0800 |
---|---|---|
committer | James Cammarata <jimi@sngx.net> | 2015-02-17 14:20:29 -0600 |
commit | 2013d95e53813e6d53dab4c501bef075019e4b3f (patch) | |
tree | e8d40dd68fbbc3b141a6c024606cd9cc234b2f58 | |
parent | b30cb192e86aa590f7d7c89d85460555b91ebe8f (diff) | |
download | ansible-2013d95e53813e6d53dab4c501bef075019e4b3f.tar.gz |
Correct filter specification
-rw-r--r-- | lib/ansible/runner/filter_plugins/core.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/ansible/runner/filter_plugins/core.py b/lib/ansible/runner/filter_plugins/core.py index 14c5fddfdd..12f8a76ee2 100644 --- a/lib/ansible/runner/filter_plugins/core.py +++ b/lib/ansible/runner/filter_plugins/core.py @@ -267,11 +267,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, |