Skip to content

Commit

Permalink
ansible-core 2.14 and higher bug fix, now they are supported
Browse files Browse the repository at this point in the history
  • Loading branch information
davidBMSTU committed Oct 25, 2024
1 parent 972597c commit bb455cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = cotea
version = 1.3.17
version = 1.3.19
author = David Badalyan
author_email = [email protected]
description = Tool that provides Python API to run Ansible programmatically.
Expand Down
3 changes: 3 additions & 0 deletions src/cotea/wrappers/get_next_task_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ def add_tasks(self, new_tasks):
for host in hosts_left:
self.play_iterator.add_tasks(host, new_tasks)

if hasattr(self.play_iterator, "all_tasks"):
self.play_iterator.all_tasks.extend(new_tasks)

return True, ""

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

0 comments on commit bb455cb

Please sign in to comment.