Skip to content

Commit

Permalink
Merge d4a05f0 into 7803123
Browse files Browse the repository at this point in the history
  • Loading branch information
jimturnquist committed Nov 29, 2017
2 parents 7803123 + d4a05f0 commit b1aed20
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions lib/api/redfish-1.0/managers.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,15 @@ var getManager = controller(function(req, res) {
}
});
return arr;
}, []);
var dellFound = false;
node[0].identifiers.forEach(function(ident) {
if(/^[0-9|A-Z]{7}$/.test(ident)){
dellFound = true;
}
});
}, []);
var dellFound = false;
if (node.length > 0) {
node[0].identifiers.forEach(function(ident) {
if(/^[0-9|A-Z]{7}$/.test(ident)){
dellFound = true;
}
});
}
options.noSerial = ((identifier === reservedId) || (dellFound)) ? true : false;
options.managerType = identifier === reservedId ? 'ManagementController' : 'BMC';
if(identifier !== reservedId) {
Expand All @@ -106,7 +108,7 @@ var getManager = controller(function(req, res) {
options.mcInfo = dmi.data['System Information'];
});
}
}
}
})
.then(function() {
if(identifier === reservedId) {
Expand Down

0 comments on commit b1aed20

Please sign in to comment.