orchestrator-lso 2.4.2__py3-none-any.whl → 2.4.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
lso/__init__.py CHANGED
@@ -13,7 +13,7 @@
13
13
 
14
14
  """LSO, an API for remotely running Ansible playbooks."""
15
15
 
16
- __version__ = "2.4.2"
16
+ __version__ = "2.4.3"
17
17
 
18
18
  import logging
19
19
 
lso/tasks.py CHANGED
@@ -81,10 +81,13 @@ def playbook_finished_handler_factory(callback: str | None, job_id: str) -> Call
81
81
  """
82
82
 
83
83
  def _playbook_finished_handler(runner: Runner) -> None:
84
+ playbook_output = runner.stdout.read().split("\n")
85
+ playbook_output = [line for line in playbook_output if line.strip()]
86
+
84
87
  payload = {
85
88
  "status": runner.status,
86
89
  "job_id": job_id,
87
- "output": runner.stdout.readlines(),
90
+ "output": playbook_output,
88
91
  "return_code": int(runner.rc),
89
92
  }
90
93
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: orchestrator-lso
3
- Version: 2.4.2
3
+ Version: 2.4.3
4
4
  Summary: LSO, an API for remotely running Ansible playbooks.
5
5
  Author: GÉANT Orchestration and Automation Team
6
6
  Author-email: GÉANT Orchestration and Automation Team <goat@geant.org>
@@ -26,7 +26,7 @@ Classifier: Programming Language :: Python :: 3.11
26
26
  Classifier: Programming Language :: Python :: 3.12
27
27
  Requires-Dist: ansible-runner==2.4.2
28
28
  Requires-Dist: ansible==10.7.0
29
- Requires-Dist: fastapi==0.120.4
29
+ Requires-Dist: fastapi==0.121.1
30
30
  Requires-Dist: httpx==0.28.1
31
31
  Requires-Dist: uvicorn[standard]==0.38.0
32
32
  Requires-Dist: requests==2.32.5
@@ -1,4 +1,4 @@
1
- lso/__init__.py,sha256=-1xhYhBAtzdi8TaFrK-xyzqp29irj-3lhitkNlZefyU,1589
1
+ lso/__init__.py,sha256=_O0finOvQKiVXjwidJcoO9nYHSbb7RW4EagNWBLMn8I,1589
2
2
  lso/app.py,sha256=PCdL4hY5i1fho_pMSiNAHuaIKWPgfQNyePsZ-LdasCg,775
3
3
  lso/config.py,sha256=tyxjq67EJLEMLmpIlkxrtwJ3arm8ZUBNGkj9NTsBJxw,1639
4
4
  lso/environment.py,sha256=4k8a8cSLwgLjBIU-XUa7Y6Clns2VjmsBkiKvkzK2Pp4,1771
@@ -9,9 +9,9 @@ lso/routes/default.py,sha256=ScSrDFjbGqjcjeOodMTKZUMzZqXZ0zC6L-I9hrP0dqk,1438
9
9
  lso/routes/execute.py,sha256=nDmilV2THCnPzAIHGUjYBuETrL0QeOQSUC7z5M3EaMA,2713
10
10
  lso/routes/playbook.py,sha256=9ughP7zqnqRpBV31KQbTMoJdfgzF0qyjxiXw1l3TlUE,5270
11
11
  lso/schema.py,sha256=Xp4D7FRc21Mhh-1xlp0EbjTvdu5kGEHRpQvQp6ic6ro,1518
12
- lso/tasks.py,sha256=F-Wbis-ylL7Vwy6qMu2fS-S9WRzIUvkkIcD8LFCDMUw,6377
12
+ lso/tasks.py,sha256=JP66ht4zO6MtsK8h66IzjVowmaDGImchYmBenpQ8OjY,6504
13
13
  lso/utils.py,sha256=eVKyYRtdu_yPkbUQqDJlCKlCPAgc0dFxG1E1kY2Qsao,1043
14
14
  lso/worker.py,sha256=ZAXii3EctILrpnHInvVMTyjOs_40gqR_VybVLBzGRw4,1727
15
- orchestrator_lso-2.4.2.dist-info/WHEEL,sha256=5w2T7AS2mz1-rW9CNagNYWRCaB0iQqBMYLwKdlgiR4Q,78
16
- orchestrator_lso-2.4.2.dist-info/METADATA,sha256=uQS0-YaAJ6xo-8_PtrT65XdKjlZtdmsl-ZCvw0sLtFk,5621
17
- orchestrator_lso-2.4.2.dist-info/RECORD,,
15
+ orchestrator_lso-2.4.3.dist-info/WHEEL,sha256=w4ZtLaDgMAZW2MMZZwtH8zENekoQYBCeullI-zsXJQk,78
16
+ orchestrator_lso-2.4.3.dist-info/METADATA,sha256=lE-X6oQGl3WofAgIIdToX7fA3ycFHw7jXS-bXn5pnGE,5621
17
+ orchestrator_lso-2.4.3.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: uv 0.9.7
2
+ Generator: uv 0.9.9
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any