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
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":
|
|
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.
|
|
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.
|
|
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
|
|
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=
|
|
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.
|
|
16
|
-
orchestrator_lso-2.4.
|
|
17
|
-
orchestrator_lso-2.4.
|
|
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,,
|