Skip to content

Commit

Permalink
solve-494: added destructor to ssm connection plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Chilinot committed Apr 14, 2021
1 parent 36f8a05 commit d3db935
Showing 1 changed file with 3 additions and 0 deletions.
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

1 comment on commit d3db935

@contactgus
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much for this, no more connections hanging around. Hopefully ansible ssm connectivity will be a bit more stable now.

Please sign in to comment.