From 3c4243f35b650dbbb437449880751ffdb4591b98 Mon Sep 17 00:00:00 2001 From: ubaumann Date: Wed, 20 Mar 2024 23:28:19 +0100 Subject: [PATCH] Teardown nornir connections after running task --- nuts/context.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nuts/context.py b/nuts/context.py index 8d84658a..4dffebbb 100644 --- a/nuts/context.py +++ b/nuts/context.py @@ -203,6 +203,7 @@ def general_result(self) -> AggregatedResult: ) self.teardown() + selected_hosts.close_connections(on_good=True, on_failed=True) return overall_results def setup(self) -> None: