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
This commit is contained in:
parent
18c9cf84ab
commit
5e511d4ad5
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user