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

(cherry picked from commit 1714279b5e)
pull/17045/head
James Cammarata 8 years ago
parent 0000b76a0a
commit f956ff9619

@ -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)

Loading…
Cancel
Save