diff --git a/ansible_mitogen/planner.py b/ansible_mitogen/planner.py index faf8d197..61156482 100644 --- a/ansible_mitogen/planner.py +++ b/ansible_mitogen/planner.py @@ -301,6 +301,9 @@ class NewStylePlanner(ScriptPlanner): @classmethod def detect(cls, path, source): + if b'from ansible_collections.openstack.' in source: + cls.marker = b'from ansible_collections.openstack.' + LOG.debug('cls.marker: %r, source: %r', cls.marker, source) return cls.marker in source def _get_interpreter(self):