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:
parent
6db6edfc4f
commit
1714279b5e
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