summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJayanth Othayoth <ojayanth@in.ibm.com>2018-04-05 22:58:48 -0500
committerVernon Mauery <vernon.mauery@linux.intel.com>2018-04-11 20:59:14 +0000
commit6ccf8818b1c5370684368bba17eb3661a3085d22 (patch)
tree6ef8f41eaad8ce065582c2c9c96effcde37fdb79
parent0922bde4e5a371b6493f178071f252c195f71e81 (diff)
downloadphosphor-host-ipmid-6ccf8818b1c5370684368bba17eb3661a3085d22.tar.gz
phosphor-host-ipmid-6ccf8818b1c5370684368bba17eb3661a3085d22.zip
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 <ojayanth@in.ibm.com>
-rw-r--r--sensorhandler.cpp2
1 files changed, 1 insertions, 1 deletions
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
OpenPOWER on IntegriCloud