Closed Fizzadar closed 2 years ago
I figured out a fix for this - it's pretty horrible but gets the job done, and beats the current exception that is raised: https://github.com/Fizzadar/pyinfra/commit/a7964e525a9c632b1d7b515c6a85cdaf749c342c.
Released in v1.6.2
.
Describe the bug
Origin: https://github.com/Fizzadar/pyinfra/issues/569
Essentially
gevent
monkey patching ofthread
&subprocess
modules breaks usinginvoke
, which [paramiko
uses to implementMatch exec
statements in SSH config]().This looks the same as: https://github.com/gevent/gevent/issues/1268
To Reproduce
Put the following in SSH config:
Then try to use
pyinfra
with a SSH target and get lots of error spam w/:Expected behaviour
It shouldn't error! Unsure on how to fix this, or whether it's possible.