From 5e511d4ad5e0a0a21ea0dd564262497946a9dd4c Mon Sep 17 00:00:00 2001 From: phamt Date: Tue, 29 May 2012 23:15:13 +0000 Subject: [PATCH] Fixed bug where IP range and hostname range were not corrected checked. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12954 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-UI/js/custom/zvm.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-UI/js/custom/zvm.js b/xCAT-UI/js/custom/zvm.js index 9a6eac09b..085e9005c 100644 --- a/xCAT-UI/js/custom/zvm.js +++ b/xCAT-UI/js/custom/zvm.js @@ -738,13 +738,13 @@ zvmPlugin.prototype.loadClonePage = function(node) { } // If an IP address range is given and the starting and ending index do not match - if (ipRange && !(nodeStart == ipStart) || !(nodeEnd == ipEnd)) { + if (ipRange && (!(nodeStart == ipStart) || !(nodeEnd == ipEnd))) { errMsg = errMsg + 'The node range and IP address range does not match. '; ready = false; } // If a hostname range is given and the starting and ending index do not match - if (hostnameRange && !(nodeStart == hostnameStart) || !(nodeEnd == hostnameEnd)) { + if (hostnameRange && (!(nodeStart == hostnameStart) || !(nodeEnd == hostnameEnd))) { errMsg = errMsg + 'The node range and hostname range does not match. '; ready = false; }