Douglas Schilling Landgraf has posted comments on this change.

Change subject: frontend:  node upgrade message improvement
......................................................................


Patch Set 13:

(2 comments)

....................................................
File 
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostGeneralModel.java
Line 676:         boolean alert = false;
Line 677:         // Fix hostOs[1] to be format of major.minor.build.revision
Line 678:         // Add ".0" for missing parts
Line 679:         String[] hostOsVersionParts = hostOs[1].split("\\."); 
//$NON-NLS-1$
Line 680:         for (int counter = 0; counter < 4 - 
hostOsVersionParts.length; counter++) {
+1 for constant.
Line 681:             hostOs[1] = hostOs[1] + ".0"; //$NON-NLS-1$
Line 682:         }
Line 683:         Version hostVersion = new Version(hostOs[1].trim());
Line 684: 


Line 677:         // Fix hostOs[1] to be format of major.minor.build.revision
Line 678:         // Add ".0" for missing parts
Line 679:         String[] hostOsVersionParts = hostOs[1].split("\\."); 
//$NON-NLS-1$
Line 680:         for (int counter = 0; counter < 4 - 
hostOsVersionParts.length; counter++) {
Line 681:             hostOs[1] = hostOs[1] + ".0"; //$NON-NLS-1$
hostOs[1].trim() + ".0"; Without the trim() the below code "Version 
hostVersion" will trigger a exception. It would be like "2.6.0 .0"
Line 682:         }
Line 683:         Version hostVersion = new Version(hostOs[1].trim());
Line 684: 
Line 685:         String releaseHost = hostOs[2].trim();


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I76bd2948524110ec80923e855bd1f49e09e17046
Gerrit-PatchSet: 13
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Douglas Schilling Landgraf <dougsl...@redhat.com>
Gerrit-Reviewer: Barak Azulay <bazu...@gmail.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: Yaniv Bronhaim <ybron...@redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to