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

Removed clonings.

This commit is contained in:
Ylian Saint-Hilaire 2019-10-11 11:16:36 -07:00
parent a57ee45388
commit f57e8a8253
8 changed files with 62 additions and 66 deletions

View file

@ -332,9 +332,7 @@ module.exports.CreateAmtScanner = function (parent) {
// Event the node change
event.msg = 'Intel® AMT changed device ' + node.name + ' from mesh ' + mesh.name + ': ' + changes.join(', ');
var node2 = obj.parent.common.Clone(node);
if (node2.intelamt && node2.intelamt.pass) delete node2.intelamt.pass; // Remove the Intel AMT password before eventing this.
event.node = node2;
event.node = obj.parent.webserver.CloneSafeNode(node);
if (obj.parent.db.changeStream) { event.noact = 1; } // If DB change stream is active, don't use this event to change the node. Another event will come.
obj.parent.DispatchEvent(['*', node.meshid], obj, event);
}