Alon Bar-Lev has posted comments on this change.

Change subject: HostGeneralModel: improve "node has upgrade" logic
......................................................................


Patch Set 6: (1 inline comment)

....................................................
File 
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostGeneralModel.java
Line 674:             String nodeVersion[] = nodeInfo[1].trim().split("\\."); 
//$NON-NLS-1$
Line 675:             String isoVersion[] = iso.getValue().trim().split("\\."); 
//$NON-NLS-1$
Line 676: 
Line 677:             // We support only upgrade with the same major version
Line 678:             if (Integer.parseInt(isoVersion[0]) == 
Integer.parseInt(nodeVersion[0])) {
date is a number, it is the rpm release. the only missing bit is the 
requirement to compare major, so add this capability into rpmversion class.
Line 679:                 // isoVersion minor or build should be higher then 
node
Line 680:                 if (Integer.parseInt(isoVersion[1]) > 
Integer.parseInt(nodeVersion[1]) ||
Line 681:                        Integer.parseInt(isoVersion[2]) > 
Integer.parseInt(nodeVersion[2])) {
Line 682:                     alert = true;


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I49c74d3d0d92c74848e0c175095610b6e6b5a88e
Gerrit-PatchSet: 6
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Douglas Schilling Landgraf <dougsl...@redhat.com>
Gerrit-Reviewer: Alexander Wels <aw...@redhat.com>
Gerrit-Reviewer: Alon Bar-Lev <alo...@redhat.com>
Gerrit-Reviewer: Barak Azulay <bazu...@redhat.com>
Gerrit-Reviewer: Doron Fediuck <dfedi...@redhat.com>
Gerrit-Reviewer: Douglas Schilling Landgraf <dougsl...@redhat.com>
Gerrit-Reviewer: Einav Cohen <eco...@redhat.com>
Gerrit-Reviewer: Vojtech Szocs <vsz...@redhat.com>
Gerrit-Reviewer: Yair Zaslavsky <yzasl...@redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to