mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
import reduce from six label:python3 (#18561)
* import 'reduce' from six * import reduce in facts fix
This commit is contained in:
parent
bb5d8fb476
commit
4e194d71bd
3 changed files with 3 additions and 1 deletions
|
@ -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:
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue