diff --git a/lib/ansible/module_utils/facts.py b/lib/ansible/module_utils/facts.py index 9f2ee76d7b..12260bc1b1 100644 --- a/lib/ansible/module_utils/facts.py +++ b/lib/ansible/module_utils/facts.py @@ -34,7 +34,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.six.moves import configparser, StringIO, reduce from ansible.module_utils._text import to_native, to_text try: diff --git a/lib/ansible/plugins/callback/profile_tasks.py b/lib/ansible/plugins/callback/profile_tasks.py index a6a4a15099..3c3726be5b 100644 --- a/lib/ansible/plugins/callback/profile_tasks.py +++ b/lib/ansible/plugins/callback/profile_tasks.py @@ -28,6 +28,7 @@ import os import time from ansible.plugins.callback import CallbackBase +from ansible.compat.six.moves import reduce # define start time t0 = tn = time.time() diff --git a/lib/ansible/plugins/strategy/debug.py b/lib/ansible/plugins/strategy/debug.py index 931474088a..61159d5fab 100644 --- a/lib/ansible/plugins/strategy/debug.py +++ b/lib/ansible/plugins/strategy/debug.py @@ -7,6 +7,7 @@ import pprint import sys from ansible.plugins.strategy.linear import StrategyModule as LinearStrategyModule +from ansible.compat.six.moves import reduce try: from __main__ import display