Use the right response variable when printing an error message
Chris Thornton committed
Apr 4, 2022 at 13:10 UTC
18ecafe3e30e86ad932a21a8b2728cae29ed2910
1 file changed
+1
-1
agents/meshcmd.js
+1
-1
@@ -3016,7 +3016,7 @@ function powerActionResponse3(stack, name, response, status) {
3016
var cbparam='<Address xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://schemas.xmlsoap.org/ws/2004/08/addressing</Address><ReferenceParameters xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing"><ResourceURI xmlns="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd">http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_BootSourceSetting</ResourceURI><SelectorSet xmlns="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd"><Selector Name="InstanceID">Intel(r) AMT: ' + bootsources[settings.bootdevice] + '</Selector></SelectorSet></ReferenceParameters>';
3017
if (!settings.bootdevice) { cbparam=null;}
3018
amtstack.CIM_BootConfigSetting_ChangeBootOrder(cbparam, function(st, nm, resp, sts) {
3019
- if (resp.Body['ReturnValue'] != 0) { console.log('(2) Change Boot Order returns '+ response.Body.ReturnValueStr); exit(1); return; }
3019
+ if (resp.Body['ReturnValue'] != 0) { console.log('(2) Change Boot Order returns '+ resp.Body.ReturnValueStr); exit(1); return; }
3020
amtstack.RequestPowerStateChange(settings.poweraction, performAmtPowerActionEx);
3021
});
3022
}