From 0690a6792610d4022c1679463e5c65b406d8d213 Mon Sep 17 00:00:00 2001 From: Adrian Likins Date: Mon, 14 Nov 2016 10:51:07 -0500 Subject: [PATCH] Include missing _text.to_text import Fixes "global name 'to_text' is not defined" error on openbsd clients. Fixes #18473 --- lib/ansible/module_utils/facts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/module_utils/facts.py b/lib/ansible/module_utils/facts.py index 03a4dd8a33d..b38604d2f0b 100644 --- a/lib/ansible/module_utils/facts.py +++ b/lib/ansible/module_utils/facts.py @@ -35,7 +35,7 @@ import pwd from ansible.module_utils.basic import get_all_subclasses from ansible.module_utils.six import PY3, iteritems from ansible.module_utils.six.moves import configparser, StringIO -from ansible.module_utils._text import to_native +from ansible.module_utils._text import to_native, to_text try: import selinux