Fixed inventory tab.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15185 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
a838da18d7
commit
b6e467acff
@ -516,8 +516,8 @@ zvmPlugin.prototype.loadServiceInventory = function(data) {
|
||||
var nicVDev, nicType, nicPortName, nicNumOfDevs, nicLanName;
|
||||
|
||||
// Loop through each NIC (Data contained in 2 lines)
|
||||
for (l = 0; l < attrs[keys[k]].length; l = l + 2) {
|
||||
if (attrs[keys[k]][l]) {
|
||||
for (l = 0; l < attrs[keys[k]].length; l++) {
|
||||
if (attrs[keys[k]][l].indexOf('Adapter') != -1) {
|
||||
args = attrs[keys[k]][l].split(' ');
|
||||
|
||||
// Get NIC virtual device, type, port name, and number of devices
|
||||
@ -1530,8 +1530,8 @@ zvmPlugin.prototype.loadInventory = function(data) {
|
||||
var nicVDev, nicType, nicPortName, nicNumOfDevs, nicLanName;
|
||||
|
||||
// Loop through each NIC (Data contained in 2 lines)
|
||||
for (l = 0; l < attrs[keys[k]].length; l = l + 2) {
|
||||
if (attrs[keys[k]][l]) {
|
||||
for (l = 0; l < attrs[keys[k]].length; l++) {
|
||||
if (attrs[keys[k]][l].indexOf('Adapter') != -1) {
|
||||
args = attrs[keys[k]][l].split(' ');
|
||||
|
||||
// Get NIC virtual device, type, port name, and number of devices
|
||||
|
@ -1676,7 +1676,7 @@ function getMonitorMetrics(node) {
|
||||
var node, status;
|
||||
|
||||
// Get the ganglia status
|
||||
for ( var i in ganglia) {
|
||||
for (var i in ganglia) {
|
||||
// ganglia[0] = nodeName and ganglia[1] = state
|
||||
node = jQuery.trim(ganglia[i][0]);
|
||||
status = jQuery.trim(ganglia[i][1]);
|
||||
|
Loading…
Reference in New Issue
Block a user