1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Tweak the way the debug strategy imports the linear strategy parent

Due to the way we load plugins, internally to Python there can be issues when
the debug strategy is loaded after the linear strategy. To work around this,
we're changing the import line for the linear strategy to avoid the problem.

Related to #16825
This commit is contained in:
James Cammarata 2016-08-05 10:06:50 -05:00
parent 6db6edfc4f
commit 1714279b5e

View file

@ -6,7 +6,7 @@ import cmd
import pprint import pprint
import sys import sys
from ansible.plugins.strategy import linear from ansible.plugins.strategy.linear import StrategyModule as LinearStrategyModule
try: try:
from __main__ import display from __main__ import display
@ -25,7 +25,7 @@ class NextAction(object):
self.result = result self.result = result
class StrategyModule(linear.StrategyModule): class StrategyModule(LinearStrategyModule):
def __init__(self, tqm): def __init__(self, tqm):
self.curr_tqm = tqm self.curr_tqm = tqm
super(StrategyModule, self).__init__(tqm) super(StrategyModule, self).__init__(tqm)