Juan Hernandez has submitted this change and it was merged.
Change subject: restapi: Always use "general" value of VdcFenceOptionTypes
......................................................................
restapi: Always use "general" value of VdcFenceOptionTypes
When the RESTAPI populates the "power_managers" section of the
capabilities resource it needs to know the option types used by the
power management options. Currently it does this retriving the version
specific version of the "VdcFenceOptionTypes" configuration parameter.
But the database only contains the "general" value of this parameter,
not the version specific values. This means that the RESTAPI will always
get the default value specified in the "ConfigValues" class, and this
doesn't contain some recently added types, like "encrypt_options", and
that triggers an exception. To solve this problem this patch changes the
RESTAPI so that it will always retrieve the "general" version of this
configuration parameter.
Change-Id: I140fac538ce1d7f146943ce5d8c80a2a787a5fc4
Signed-off-by: Juan Hernandez <juan.hernandez(a)redhat.com>
---
M
backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendCapabilitiesResource.java
1 file changed, 5 insertions(+), 5 deletions(-)
Approvals:
Juan Hernandez: Verified
Alexander Wels: Looks good to me, approved
--
To view, visit
https://gerrit.ovirt.org/39453
To unsubscribe, visit
https://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I140fac538ce1d7f146943ce5d8c80a2a787a5fc4
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <juan.hernandez(a)redhat.com>
Gerrit-Reviewer: Alexander Wels <awels(a)redhat.com>
Gerrit-Reviewer: Eli Mesika <emesika(a)redhat.com>
Gerrit-Reviewer: Eyal Edri <eedri(a)redhat.com>
Gerrit-Reviewer: Juan Hernandez <juan.hernandez(a)redhat.com>
Gerrit-Reviewer: automation(a)ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server