Yair Zaslavsky has posted comments on this change. Change subject: Using ssh username and password to install and update host ......................................................................
Patch Set 7: (1 inline comment) Split up to patches for API and UI .................................................... File backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddVdsCommand.java Line 313: } else if (getVdsDAO().getByName(vdsName) != null) { Line 314: returnValue = failCanDoAction(VdcBllMessages.ACTION_TYPE_FAILED_NAME_ALREADY_USED); Line 315: } else if (getVdsDAO().getAllForHostname(hostName).size() != 0) { Line 316: returnValue = failCanDoAction(VdcBllMessages.ACTION_TYPE_FAILED_VDS_WITH_SAME_HOST_EXIST); Line 317: } else if (!ValidationUtils.validatePort(vds.getSSHPort())) { Hi, I would to consult about starting to use (and later refactor) the code to the validator pattern (see StoragePoolValidator + usage). This will decrease the length of canDoAction messages. Line 318: returnValue = failCanDoAction(VdcBllMessages.ACTION_TYPE_FAILED_VDS_WITH_INVALID_SSH_PORT); Line 319: } else if (!ValidationUtils.validHostname(vds.getSSHUsername())) { Line 320: returnValue = failCanDoAction(VdcBllMessages.ACTION_TYPE_FAILED_VDS_WITH_INVALID_SSH_USERNAME); Line 321: } else { -- To view, visit http://gerrit.ovirt.org/16006 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Id39914e1286870373ad6f69360fa7b3ddfabd8df Gerrit-PatchSet: 7 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Yaniv Bronhaim <ybron...@redhat.com> Gerrit-Reviewer: Alon Bar-Lev <alo...@redhat.com> Gerrit-Reviewer: Maor Lipchuk <mlipc...@redhat.com> Gerrit-Reviewer: Omer Frenkel <ofren...@redhat.com> Gerrit-Reviewer: Yair Zaslavsky <yzasl...@redhat.com> Gerrit-Reviewer: Yaniv Bronhaim <ybron...@redhat.com> Gerrit-Reviewer: liron aravot <liron.ara...@gmail.com> Gerrit-Reviewer: oVirt Jenkins CI Server _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches