From 6ccf8818b1c5370684368bba17eb3661a3085d22 Mon Sep 17 00:00:00 2001 From: Jayanth Othayoth Date: Thu, 5 Apr 2018 22:58:48 -0500 Subject: sensorhandler: changed mutabiltity error code in get sensor Changed mutability handling error code in get sensor from IPMI_CC_SENSOR_INVALID to IPMI_CC_ILLEGAL_COMMAND Change-Id: I599de08e3d3bc6a9820ac3978f0a4d160f19f55e Signed-off-by: Jayanth Othayoth --- sensorhandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sensorhandler.cpp') diff --git a/sensorhandler.cpp b/sensorhandler.cpp index 1a66a1e..618aa54 100644 --- a/sensorhandler.cpp +++ b/sensorhandler.cpp @@ -552,7 +552,7 @@ ipmi_ret_t ipmi_sen_get_sensor_reading(ipmi_netfn_t netfn, ipmi_cmd_t cmd, if (ipmi::sensor::Mutability::Read != (iter->second.mutability & ipmi::sensor::Mutability::Read)) { - return IPMI_CC_SENSOR_INVALID; + return IPMI_CC_ILLEGAL_COMMAND; } try -- cgit v1.2.1