Fixed MeshCmd AmtInfo not terminating with --json.

This commit is contained in:
Ylian Saint-Hilaire 2021-11-25 22:47:22 -08:00
parent f4256bc54e
commit 397467c4c8

View File

@ -573,6 +573,7 @@ function run(argv) {
getAmtOsDnsSuffix(mestate, function() {
if (args.json) {
console.log(JSON.stringify(mestate, null, 2));
exit(0);
} else if (mestate.ver && mestate.ProvisioningState && mestate.ProvisioningMode) {
var str = 'Intel ME v' + mestate.ver;
if (mestate.sku & 8) { str = 'Intel AMT v' + mestate.ver }