Alon Bar-Lev has posted comments on this change.
Change subject: bootstrap: remove VdsInstallerSSH::getServerKeyFingerprint()
......................................................................
Patch Set 1: (1 inline comment)
....................................................
File
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/GetAddedGlusterServersQuery.java
Line 85: client.setHardTimeout(timeout);
Line 86: client.setSoftTimeout(timeout);
Line 87: client.setHost(serverName, 22);
Line 88: client.connect();
Line 89: PublicKey serverKey = client.getServerKey();
It can be reused exactly as this code is reused.
As I wrote in the initial comment, in the future the whole fingerprint
management will be cleaned up, this included.
I don't think it worth a class with single method just for the sake of 4 lines
of code difference.
Line 90: if (serverKey == null) {
Line 91: throw new Exception("No server key");
Line 92: }
Line 93: fingerPrint =
OpenSSHUtils.getKeyFingerprintString(serverKey);
--
To view, visit http://gerrit.ovirt.org/9160
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I48e02991635a5eb2c954da392cdd5f68219120b3
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Alon Bar-Lev <[email protected]>
Gerrit-Reviewer: Barak Azulay <[email protected]>
Gerrit-Reviewer: Douglas Schilling Landgraf <[email protected]>
Gerrit-Reviewer: Juan Hernandez <[email protected]>
Gerrit-Reviewer: Shireesh Anjal <[email protected]>
Gerrit-Reviewer: Yair Zaslavsky <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches