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

Commit

Permalink
make ssh optional (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl authored Sep 9, 2021
1 parent cc2683e commit bd054db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tpi/terraform.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ def _shell(self, *args, **kwargs):
"""
from shutil import which

from asyncssh import Error as AsyncSshError

if which("ssh"):
return self._shell_default(*args, **kwargs)

from asyncssh import Error as AsyncSshError

loop = asyncio.new_event_loop()
try:
asyncio.set_event_loop(loop)
Expand Down

0 comments on commit bd054db

Please sign in to comment.