From 5492bd7e2fa45a34ea2019d356b42ec4764b70a9 Mon Sep 17 00:00:00 2001 From: Daan Selen Date: Thu, 9 Jan 2025 10:08:47 +0100 Subject: [PATCH] Slight modifications and gave round response a better name: Task {Number}. --- examples/big_test.yaml | 6 +++--- meshbook.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/big_test.yaml b/examples/big_test.yaml index 917b7ee..d8758be 100644 --- a/examples/big_test.yaml +++ b/examples/big_test.yaml @@ -1,6 +1,6 @@ --- name: Echo some text in the terminal of the device -group: "Kubernetes" +group: "Dev" variables: - name: package_manager value: "apt" @@ -26,6 +26,6 @@ tasks: - name: Ping Google DNS command: "ping {{ google_dns }} -c 4" - + - name: Ping Quad9 DNS - command: "ping {{ quad9_dns }} -c 4" \ No newline at end of file + command: "ping {{ quad9_dns }} -c 4" diff --git a/meshbook.py b/meshbook.py index 2e21a16..c190041 100644 --- a/meshbook.py +++ b/meshbook.py @@ -132,7 +132,7 @@ async def execute_playbook(session: meshctrl.Session, targets: dict, playbook: d response[device]["device_name"] = await translate_id_to_name(device) task_batch.append(response[device]) - responses_list[task["name"]] = task_batch + responses_list["Task " + str(round)] = task_batch round += 1 output_text(("-" * 40), False)