Skip to content

Commit

Permalink
Merge pull request ansible-collections#542 from scrive/solve-#494
Browse files Browse the repository at this point in the history
Solves 494: added destructor to ssm connection plugin

Reviewed-by: https://github.com/apps/ansible-zuul
  • Loading branch information
ansible-zuul[bot] authored Apr 14, 2021
2 parents 7cf36c5 + cb913ec commit 0e7bb22
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
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).
3 changes: 3 additions & 0 deletions plugins/connection/aws_ssm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 '''

Expand Down

0 comments on commit 0e7bb22

Please sign in to comment.