Merge pull request #17191 from mgedmin/fix-import-error-unicode

Fix trivial ImportErrors when trying to use with_fileglob
pull/17186/head
Abhijit Menon-Sen 8 years ago committed by GitHub
commit 6f678e36d6

@ -98,7 +98,7 @@ class LookupBase(with_metaclass(ABCMeta, object)):
must be converted into python's unicode type as the strings will be run
through jinja2 which has this requirement. You can use::
from ansible.module_utils.unicode import to_unicode
from ansible.utils.unicode import to_unicode
result_string = to_unicode(result_string)
"""
pass

@ -22,7 +22,7 @@ import glob
from ansible.plugins.lookup import LookupBase
from ansible.errors import AnsibleFileNotFound
from ansible.module_utils.unicode import to_bytes
from ansible.utils.unicode import to_bytes, to_unicode
class LookupModule(LookupBase):

Loading…
Cancel
Save