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 sys
from ansible.plugins.strategy import linear
from ansible.plugins.strategy.linear import StrategyModule as LinearStrategyModule
try:
from __main__ import display
@ -25,7 +25,7 @@ class NextAction(object):
self.result = result
class StrategyModule(linear.StrategyModule):
class StrategyModule(LinearStrategyModule):
def __init__(self, tqm):
self.curr_tqm = tqm
super(StrategyModule, self).__init__(tqm)