Skip to content

Commit

Permalink
Teardown nornir connections after running task
Browse files Browse the repository at this point in the history
  • Loading branch information
ubaumann committed Mar 21, 2024
1 parent 7b0ec6c commit 46e1bc9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nuts/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 46e1bc9

Please sign in to comment.