From d3db93558aab82662d5e39dcd2d0a1c13f42499c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Arnstr=C3=B6m?= Date: Wed, 14 Apr 2021 11:41:16 +0200 Subject: [PATCH] solve-494: added destructor to ssm connection plugin --- plugins/connection/aws_ssm.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/connection/aws_ssm.py b/plugins/connection/aws_ssm.py index b013ff5a71a..23e222614d0 100644 --- a/plugins/connection/aws_ssm.py +++ b/plugins/connection/aws_ssm.py @@ -280,6 +280,9 @@ def __init__(self, *args, **kwargs): self._shell_type = 'powershell' self.is_windows = True + def __del__(self): + self.close() + def _connect(self): ''' connect to the host via ssm '''