From 6ff2cdd8a8ea264ae45df79965ced336a8c91ddc 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 1/4] 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 ''' From e21148f6b43b4995e4cd29fd48685f40de0edbe9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Arnstr=C3=B6m?= Date: Wed, 14 Apr 2021 14:16:43 +0200 Subject: [PATCH 2/4] solve-494: added changelog fragment --- .../fragments/542-ensure-ssm-plugin-terminates-connections.yml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 changelogs/fragments/542-ensure-ssm-plugin-terminates-connections.yml diff --git a/changelogs/fragments/542-ensure-ssm-plugin-terminates-connections.yml b/changelogs/fragments/542-ensure-ssm-plugin-terminates-connections.yml new file mode 100644 index 00000000000..06e0f5b5cd4 --- /dev/null +++ b/changelogs/fragments/542-ensure-ssm-plugin-terminates-connections.yml @@ -0,0 +1,2 @@ +bug_fixes: + - aws_ssm - Adds destructor to SSM connection plugin to ensure connections are properly cleaned up after usage. From 98e9f7c4245ccf873b5398925be7b3eea71db733 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Arnstr=C3=B6m?= Date: Wed, 14 Apr 2021 14:19:12 +0200 Subject: [PATCH 3/4] Update changelogs/fragments/542-ensure-ssm-plugin-terminates-connections.yml Co-authored-by: Mark Chappell --- .../fragments/542-ensure-ssm-plugin-terminates-connections.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/fragments/542-ensure-ssm-plugin-terminates-connections.yml b/changelogs/fragments/542-ensure-ssm-plugin-terminates-connections.yml index 06e0f5b5cd4..6ecbc0f5789 100644 --- a/changelogs/fragments/542-ensure-ssm-plugin-terminates-connections.yml +++ b/changelogs/fragments/542-ensure-ssm-plugin-terminates-connections.yml @@ -1,2 +1,2 @@ bug_fixes: - - aws_ssm - Adds destructor to SSM connection plugin to ensure connections are properly cleaned up after usage. + - aws_ssm - Adds destructor to SSM connection plugin to ensure connections are properly cleaned up after usage (https://github.com/ansible-collections/community.aws/pull/542). From cb913ec517fb3083a5843c11f0031a3585caa33e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Arnstr=C3=B6m?= Date: Wed, 14 Apr 2021 15:38:06 +0200 Subject: [PATCH 4/4] Update changelogs/fragments/542-ensure-ssm-plugin-terminates-connections.yml Co-authored-by: Mark Chappell --- .../fragments/542-ensure-ssm-plugin-terminates-connections.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/fragments/542-ensure-ssm-plugin-terminates-connections.yml b/changelogs/fragments/542-ensure-ssm-plugin-terminates-connections.yml index 6ecbc0f5789..1cbe860d1d2 100644 --- a/changelogs/fragments/542-ensure-ssm-plugin-terminates-connections.yml +++ b/changelogs/fragments/542-ensure-ssm-plugin-terminates-connections.yml @@ -1,2 +1,2 @@ -bug_fixes: +bugfixes: - aws_ssm - Adds destructor to SSM connection plugin to ensure connections are properly cleaned up after usage (https://github.com/ansible-collections/community.aws/pull/542).