From ecadf0846bbe007e4a7e881b561b1c7d37aaa803 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 f5727ad8d242d1aaaa89c160335cef0fe9a43ebd 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 a3b6e2895d1319fcad231e81519a168e48549723 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 6791fd7d638cca3be1a84f80e42ab85060c6e3fa 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).