tobami / littlechef

Cook with Chef without a Chef Server
Apache License 2.0
472 stars 71 forks source link

Handle SSHException #197

Open tobami opened 10 years ago

tobami commented 10 years ago

196 describes a problem unrelated to LittleChef caused by the default settings of the openssh cookbook.

On our side at least the error could be handled better, so instead of the stacktrace the user would see a more helpful message.

The final line in the exception's output is: paramiko.ssh_exception.SSHException: Channel closed.

And the code line where it happens: https://github.com/tobami/littlechef/blob/1.6.1/littlechef/solo.py#L105