Gilad Chaplik has uploaded a new change for review.

Change subject: restapi: missing vms link under affinity groups
......................................................................

restapi: missing vms link under affinity groups

Change-Id: Ia913bee64669db435be49463821ae68fe61978be
Bug-Url: https://bugzilla.redhat.com/1128461
Signed-off-by: Gilad Chaplik <gchap...@redhat.com>
(cherry picked from commit b8feb5728bf72b50df230af5915c3c1544ccb3ab)
---
M 
backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendAffinityGroupsResource.java
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/02/31302/1

diff --git 
a/backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendAffinityGroupsResource.java
 
b/backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendAffinityGroupsResource.java
index 87f5bfd..f555629 100644
--- 
a/backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendAffinityGroupsResource.java
+++ 
b/backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendAffinityGroupsResource.java
@@ -18,10 +18,12 @@
         extends AbstractBackendCollectionResource<AffinityGroup, 
org.ovirt.engine.core.common.scheduling.AffinityGroup>
         implements AffinityGroupsResource {
 
+    static final String[] SUB_COLLECTIONS = { "vms" };
+
     private String clusterId;
 
     public BackendAffinityGroupsResource(String clusterId) {
-        super(AffinityGroup.class, 
org.ovirt.engine.core.common.scheduling.AffinityGroup.class);
+        super(AffinityGroup.class, 
org.ovirt.engine.core.common.scheduling.AffinityGroup.class, SUB_COLLECTIONS);
         this.clusterId = clusterId;
     }
 


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia913bee64669db435be49463821ae68fe61978be
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.4
Gerrit-Owner: Gilad Chaplik <gchap...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to