1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Fixed Intel AMT event log parsing exception.

This commit is contained in:
Ylian Saint-Hilaire 2021-07-18 18:02:30 -07:00
parent d29b30ece5
commit 834544b2b2
2 changed files with 2 additions and 3 deletions

View file

@ -488,7 +488,7 @@ function AmtStackCreateService(wsmanStack) {
function _GetMessageLog1(stack, name, responses, status, tag) {
if (status != 200 || responses.Body["ReturnValue"] != '0') { tag[0](obj, null, tag[2], status); return; }
var i, j, x, e, AmtMessages = tag[2], t = new Date(), TimeStamp, ra = responses.Body["RecordArray"];
if (typeof ra === 'string') { responses.Body["RecordArray"] = [responses.Body["RecordArray"]]; }
if (typeof ra === 'string') { ra = [ra]; }
for (i in ra) {
e = Buffer.from(ra[i], 'base64');