Skip to content

Commit bb455cb

Browse files
committed
ansible-core 2.14 and higher bug fix, now they are supported
1 parent 972597c commit bb455cb

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = cotea
3-
version = 1.3.17
3+
version = 1.3.19
44
author = David Badalyan
55
author_email = [email protected]
66
description = Tool that provides Python API to run Ansible programmatically.

src/cotea/wrappers/get_next_task_wrapper.py

+3
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@ def add_tasks(self, new_tasks):
161161
for host in hosts_left:
162162
self.play_iterator.add_tasks(host, new_tasks)
163163

164+
if hasattr(self.play_iterator, "all_tasks"):
165+
self.play_iterator.all_tasks.extend(new_tasks)
166+
164167
return True, ""
165168

166169
error_msg = "Some of the needed objects are None. Most likely "

0 commit comments

Comments
 (0)