summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGunnar Mills <gmills@us.ibm.com>2019-03-29 16:34:56 -0500
committerEd Tanous <ed.tanous@intel.com>2019-04-02 15:36:26 +0000
commit4d64ce347e01fe4aa849e79504024eb98bbdc7aa (patch)
treef62013da0b6aae720ef5a8c33edd2abe8175782d
parent21087210733a5dd654490153df22d3e0825f3ffe (diff)
downloadbmcweb-4d64ce347e01fe4aa849e79504024eb98bbdc7aa.tar.gz
bmcweb-4d64ce347e01fe4aa849e79504024eb98bbdc7aa.zip
Fix AllowableValues failProp error
The RedfishServiceValidator throws the following error: "ERROR - Locked@Redfish.AllowableValues[0]: Expected string value, got type class 'bool'" From http://redfish.dmtf.org/schemas/DSP0266_1.0.html#allowable-values "6.5.4.7.2. Allowable values The property representing the action may be annotated with the "AllowableValues" annotation in order to specify the list of allowable values for a particular parameter. The set of allowable values is specified by including a property whose name is the name of the parameter followed by "@Redfish.AllowableValues", and whose value is a JSON array of strings representing the allowable values for the parameter." Moved AllowableValues[0] to a string. Tested: Ran RedfishServiceValidator and no longer observe the error. Change-Id: I167416fe62449dd428f549c486069db0de7676b0 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
-rw-r--r--redfish-core/lib/account_service.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/redfish-core/lib/account_service.hpp b/redfish-core/lib/account_service.hpp
index a5c501d..70eed78 100644
--- a/redfish-core/lib/account_service.hpp
+++ b/redfish-core/lib/account_service.hpp
@@ -477,7 +477,7 @@ class ManagerAccount : public Node
*userLocked;
asyncResp->res.jsonValue
["Locked@Redfish.AllowableValues"] = {
- false};
+ "false"};
}
else if (property.first == "UserPrivilege")
{
OpenPOWER on IntegriCloud