Change in ovirt-engine[ovirt-engine-4.0]: restapi: Always populate V3 disk interface and bootable

tnisan at redhat.com tnisan at redhat.com
Tue Jun 28 12:15:11 UTC 2016


Tal Nisan has submitted this change and it was merged.

Change subject: restapi: Always populate V3 disk interface and bootable
......................................................................


restapi: Always populate V3 disk interface and bootable

Currently the V3 disk interface and bootable attributes are only
populated with a disk is retrieved, but it isn't populated for disk
objects returned by the "add" or "update" operations. To fix that
this patch moves the code that populates these attributes from the
implementation of the "get" operation to the adapter that transforms
all output disk objects.

Change-Id: I17634e05969ca826ae9a1c7aa08d9bfcfe0ef620
Bug-Url: https://bugzilla.redhat.com/1349594
Signed-off-by: Juan Hernandez <juan.hernandez at redhat.com>
(cherry picked from commit 7964f2a1c81c83048a6394155a2686597aad5d44)
---
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/v3/adapters/V3DiskOutAdapter.java
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/v3/servers/V3VmDiskServer.java
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/v3/servers/V3VmDisksServer.java
3 files changed, 30 insertions(+), 11 deletions(-)

Approvals:
  Tal Nisan: Looks good to me, approved
  Juan Hernandez: Verified
  Jenkins CI: Passed CI tests



-- 
To view, visit https://gerrit.ovirt.org/59809
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I17634e05969ca826ae9a1c7aa08d9bfcfe0ef620
Gerrit-PatchSet: 4
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-4.0
Gerrit-Owner: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Tal Nisan <tnisan at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>



More information about the Engine-commits mailing list