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 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 e0ec8197d18c5d52690684416ce5e175c40e89c2 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 8523fe95d4fc313898d5cbcbec55a5d8389909de 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 b9e6c64d81b0021aaac69bae7b6662f8f98dcf32 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).