Arik Hadas has uploaded a new change for review.

Change subject: core: temporary fix for vm deserialization
......................................................................

core: temporary fix for vm deserialization

The introduction of graphics-info to VM broke the deserialization of VMs
using json since there is a 'getter' named 'getGraphicsInfos' without a
corresponding setter. This patch makes a temporary change in order to
overcome this problem by adding JsonIgnore annotation on the
getGraphicsInfos method, until a proper setter will be added.

Change-Id: I365000b9dd8e282af0a43932963baf29e6cad7f0
Signed-off-by: Arik Hadas <[email protected]>
---
M 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VM.java
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/33/36233/1

diff --git 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VM.java
 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VM.java
index 1bce4e4..ec38b63 100644
--- 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VM.java
+++ 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VM.java
@@ -396,6 +396,7 @@
         vmStatic.setDefaultDisplayType(value);
     }
 
+    @JsonIgnore
     public Map<GraphicsType, GraphicsInfo> getGraphicsInfos() {
         return vmDynamic.getGraphicsInfos();
     }


-- 
To view, visit http://gerrit.ovirt.org/36233
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I365000b9dd8e282af0a43932963baf29e6cad7f0
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Arik Hadas <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to