Sahina Bose has posted comments on this change.

Change subject: Wrap validation of fingerprint in each connect using 
EngineSSHClient
......................................................................


Patch Set 9: (1 inline comment)

Can GlusterUtil be created under a gluster sub package - say 
org.ovirt.engine.core.bll.utils.gluster ?

....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/utils/EngineSSHClient.java
Line 61:             String actual = getHostFingerprint();
Line 62:             String expected = _vds.getSSHKeyFingerprint();
Line 63: 
Line 64:             if (expected == null || expected.isEmpty()) {
Line 65:                 _vds.setSSHKeyFingerprint(getHostFingerprint());
You can just use "actual" here.
Line 66:                 
DbFacade.getInstance().getVdsStaticDao().update(_vds.getStaticData());
Line 67:             } else if (!actual.equals(expected)) {
Line 68:                 throw new GeneralSecurityException(
Line 69:                     String.format(


-- 
To view, visit http://gerrit.ovirt.org/16126
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Ic01517a153406c8bafc672c20b0bf8686763a2f5
Gerrit-PatchSet: 9
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Yaniv Bronhaim <[email protected]>
Gerrit-Reviewer: Alon Bar-Lev <[email protected]>
Gerrit-Reviewer: Sahina Bose <[email protected]>
Gerrit-Reviewer: Yair Zaslavsky <[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

Reply via email to