Skip to content

Commit 31f849d

Browse files
committed
Fixed ansible custom promise type ability to load modules
This seems to be due to the promise type not calling init_plugin_loader() as mentioned in this issue: ansible/ansible#83992 and solved in this commit ansible/ansible-documentation#1524 This occurred with the upgrade from ansible 2.14 to 2.15 around May 2024. Ticket: ENT-13701 Changelog: title
1 parent b14c951 commit 31f849d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

promise-types/ansible/ansible_promise.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from ansible.parsing.dataloader import DataLoader
1414
from ansible.plugins.callback import CallbackBase
1515
from ansible.vars.manager import VariableManager
16+
from ansible.plugins.loader import init_plugin_loader
1617

1718
ANSIBLE_AVAILABLE = True
1819
except ImportError:
@@ -165,4 +166,5 @@ def evaluate_promise(
165166

166167

167168
if __name__ == "__main__":
169+
init_plugin_loader()
168170
AnsiblePromiseTypeModule().start()

0 commit comments

Comments
 (0)