From 621de84b9373360b3d102ae35cd7400af5a00386 Mon Sep 17 00:00:00 2001 From: phamt Date: Mon, 31 Jan 2011 17:16:12 +0000 Subject: [PATCH] Made appropriate changes to how osimage table is parsed because osimage table changed. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8776 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-UI/js/nodes/nodes.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xCAT-UI/js/nodes/nodes.js b/xCAT-UI/js/nodes/nodes.js index a217500c8..22ab329a3 100644 --- a/xCAT-UI/js/nodes/nodes.js +++ b/xCAT-UI/js/nodes/nodes.js @@ -2051,8 +2051,8 @@ function setOSImageCookies(data) { var cols = rsp[i].split(','); var osImage = cols[0].replace(new RegExp('"', 'g'), ''); var profile = cols[1].replace(new RegExp('"', 'g'), ''); - var osVer = cols[5].replace(new RegExp('"', 'g'), ''); - var osArch = cols[7].replace(new RegExp('"', 'g'), ''); + var osVer = cols[6].replace(new RegExp('"', 'g'), ''); + var osArch = cols[8].replace(new RegExp('"', 'g'), ''); imageNames.push(osImage); profilesHash[profile] = 1; @@ -2071,14 +2071,14 @@ function setOSImageCookies(data) { $.cookie('profiles', tmp); // Save OS versions in a cookie - tmp = []; + tmp = new Array; for (var key in osVersHash) { tmp.push(key); } $.cookie('osvers', tmp); // Save OS architectures in a cookie - tmp = []; + tmp = new Array; for (var key in osArchsHash) { tmp.push(key); }