commit | d4e041d5a318e85df956ba03f323d8443cd06db8 | [log] [tgz] |
---|---|---|
author | Matthew Treinish <mtreinish@kortar.org> | Wed Mar 01 09:58:57 2017 -0500 |
committer | Matthew Treinish <mtreinish@kortar.org> | Wed Mar 01 09:58:57 2017 -0500 |
tree | 68d6b7567d355089cd599ff65c0d8e267b9b7d14 | |
parent | 13a7fec7592236a1b2a5510d819181d8fe3f694e [diff] |
Close connection after each failed connect attempt Currently the ssh lib code does not explicitly close the Transport objects on auth failure. It is possible that paramiko is leaving the connections open on each auth attempt which is crashing dropbear in cirros guests. This commit adds the close() call on failure to make sure we don't leave a dangling connection open. Change-Id: Ida499a80be184b1af9b53d4ab27a8abbc4d59898