Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
Proper check of the existence of SSH tunnel attribute (#1380)
Browse files Browse the repository at this point in the history
  • Loading branch information
objmagic authored Sep 13, 2016
1 parent fcab1b6 commit c45ac3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion heron/statemgrs/src/python/statemanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def establish_ssh_tunnel(self):
return localport

def terminate_ssh_tunnel(self):
if self.tunnel:
if hasattr(self, 'tunnel') and self.tunnel:
self.tunnel.terminate()

@abc.abstractmethod
Expand Down

0 comments on commit c45ac3c

Please sign in to comment.