From cb1d059cebf9d6dbb83ff3cb3d6eab42dc018a00 Mon Sep 17 00:00:00 2001 From: Lei YU Date: Wed, 9 Jan 2019 10:25:49 +0800 Subject: Fix invalid enum value in User/Ldap/Config.interface.yaml The interfaces sets the default value for a enum property to 0, which causes the generated server.hpp file contains code like: SearchScope _lDAPSearchScope = SearchScope::0; Fix it by specify the enum value instead of 0. Tested: Verify the generated code becomes below and pass the build. SearchScope _lDAPSearchScope = SearchScope::sub; Change-Id: I509b6968d32dec38d1592103df9821b2fc99b5d6 Signed-off-by: Lei YU --- xyz/openbmc_project/User/Ldap/Config.interface.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xyz/openbmc_project/User/Ldap/Config.interface.yaml b/xyz/openbmc_project/User/Ldap/Config.interface.yaml index 34babf1..6b0a1e5 100644 --- a/xyz/openbmc_project/User/Ldap/Config.interface.yaml +++ b/xyz/openbmc_project/User/Ldap/Config.interface.yaml @@ -29,7 +29,7 @@ properties: type: enum[self.SearchScope] description: > Specifies the search scope:subtree, one level or base object. - default: 0 + default: sub errors: - xyz.openbmc_project.Common.Error.InternalFailure - name: LDAPType -- cgit v1.2.1