Oved Ourfali has posted comments on this change. Change subject: foreman-integration: Remove domain from hostname to allow rhevh registration ......................................................................
Patch Set 1: Code-Review-1 (1 comment) http://gerrit.ovirt.org/#/c/35450/1/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RegisterVdsQuery.java File backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RegisterVdsQuery.java: Line 156: // force to reload vdss by unique ID used later on Line 157: _vdssByUniqueId = null; Line 158: VDS vdsByUniqueId = getVdssByUniqueId().size() != 0 ? getVdssByUniqueId().get(0) : null; Line 159: String registeredVdsName = getParameters().getVdsName().split("\\.")[0]; Line 160: VDS provisionedVds = DbFacade.getInstance().getVdsDao().getByName(registeredVdsName); why isn't the vdsByUniqueId enough for you? why do you need to fetch it again by name? In addition, you have the option to get by HostName (i.e, FDQN/IP). GetByHostName. Line 161: if (provisionedVds != null && provisionedVds.getStatus() != VDSStatus.InstallingOS) { Line 162: // if not in InstallingOS status, this host is not provisioned. Line 163: provisionedVds = null; Line 164: } -- To view, visit http://gerrit.ovirt.org/35450 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ie95c258def25d2e484d4094784eb0b15d62c7ef3 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Yaniv Bronhaim <[email protected]> Gerrit-Reviewer: Oved Ourfali <[email protected]> Gerrit-Reviewer: [email protected] Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: Yes _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
