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
)
This commit is contained in:
parent
0000b76a0a
commit
f956ff9619
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue