From 483c83b0881f2a70b0fe9f87541d9a3f50466c92 Mon Sep 17 00:00:00 2001 From: Marius Gedminas Date: Tue, 23 Aug 2016 09:22:03 +0300 Subject: [PATCH] There's no ansible.module_utils_unicode --- lib/ansible/plugins/lookup/__init__.py | 2 +- lib/ansible/plugins/lookup/fileglob.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/plugins/lookup/__init__.py b/lib/ansible/plugins/lookup/__init__.py index 2472f66577..2a90321e40 100644 --- a/lib/ansible/plugins/lookup/__init__.py +++ b/lib/ansible/plugins/lookup/__init__.py @@ -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 diff --git a/lib/ansible/plugins/lookup/fileglob.py b/lib/ansible/plugins/lookup/fileglob.py index efd8765bb8..a015bd8816 100644 --- a/lib/ansible/plugins/lookup/fileglob.py +++ b/lib/ansible/plugins/lookup/fileglob.py @@ -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 class LookupModule(LookupBase):