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
This commit is contained in:
phamt 2011-01-31 17:16:12 +00:00
parent dc16e7b0bb
commit 621de84b93

View File

@ -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);
}