Alon Bar-Lev has uploaded a new change for review. Change subject: gluster: remove dead code ......................................................................
gluster: remove dead code Change-Id: I77ed229432a85faec5e4f9b541a86b29d67ee09a Signed-off-by: Alon Bar-Lev <[email protected]> --- M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/GetGlusterServersForImportQuery.java 1 file changed, 0 insertions(+), 7 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/14/15914/1 diff --git a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/GetGlusterServersForImportQuery.java b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/GetGlusterServersForImportQuery.java index c3e29d9..40be00a 100644 --- a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/GetGlusterServersForImportQuery.java +++ b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/GetGlusterServersForImportQuery.java @@ -10,7 +10,6 @@ import org.ovirt.engine.core.dal.dbbroker.DbFacade; import org.ovirt.engine.core.dao.VdsStaticDAO; import org.ovirt.engine.core.utils.gluster.GlusterUtil; -import org.ovirt.engine.core.utils.ssh.SSHClient; /** * Query to fetch list of gluster servers via ssh using the given serverName and password. @@ -36,8 +35,6 @@ throw new RuntimeException(VdcBllMessages.SERVER_ALREADY_EXISTS_IN_ANOTHER_CLUSTER.toString()); } - SSHClient client = null; - try { Map<String, String> serverFingerPrintMap = getGlusterUtil().getPeers(getParameters().getServerName(), @@ -59,10 +56,6 @@ throw re; } catch (Exception e) { throw new RuntimeException(e); - } finally { - if (client != null) { - client.disconnect(); - } } } -- To view, visit http://gerrit.ovirt.org/15914 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I77ed229432a85faec5e4f9b541a86b29d67ee09a Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Alon Bar-Lev <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
