Change in ovirt-engine[master]: restapi: Always use "general" value of VdcFenceOptionTypes

juan.hernandez at redhat.com juan.hernandez at redhat.com
Wed Apr 1 15:43:30 UTC 2015


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 at 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 at redhat.com>
Gerrit-Reviewer: Alexander Wels <awels at redhat.com>
Gerrit-Reviewer: Eli Mesika <emesika at redhat.com>
Gerrit-Reviewer: Eyal Edri <eedri at redhat.com>
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server



More information about the Engine-commits mailing list