Yaniv Bronhaim has posted comments on this change.
Change subject: utils: introduce EngineSSHClient wrapper
......................................................................
Patch Set 1: (1 inline comment)
....................................................
File
backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/ssh/EngineSSHClient.java
Line 53: throw new IOException("Unable to parse host key");
Line 54: }
Line 55:
Line 56: return fingerprint;
Line 57: }
With that before each connect we need:
fp = readStoredfingerprint()
if fp.equal(s.getHostFingerprint()) {
s.connect();
}
instead of having
@override
public void connect(String fp) {
if !..
throw("invalid fingerprint");
s.connect..
..
}
that does it for you
Line 58:
Line 59: /**
Line 60: * Use default engine ssh key.
Line 61: */
--
To view, visit http://gerrit.ovirt.org/15969
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I1993ac7e01963135aa8f53ce481b308b6531ecd3
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <[email protected]>
Gerrit-Reviewer: Alon Bar-Lev <[email protected]>
Gerrit-Reviewer: Barak Azulay <[email protected]>
Gerrit-Reviewer: Sahina Bose <[email protected]>
Gerrit-Reviewer: Yaniv Bronhaim <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches