Alona Kaplan has uploaded a new change for review.

Change subject: core: expand getVdsGroup to return VDSGroup of a VmTemplate.
......................................................................

core: expand getVdsGroup to return VDSGroup of a VmTemplate.

If getVmTemplate is not null, VDSGroup can be achieved by the
vds_group_id on the VmTemplate.

Change-Id: I13bc346d5ac4d483106100a080aba9e1b052110f
Signed-off-by: Alona Kaplan <alkap...@redhat.com>
---
M 
backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dal/dbbroker/auditloghandling/AuditLogableBase.java
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/64/9564/1

diff --git 
a/backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dal/dbbroker/auditloghandling/AuditLogableBase.java
 
b/backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dal/dbbroker/auditloghandling/AuditLogableBase.java
index 2ed527b..8e7c0eb 100644
--- 
a/backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dal/dbbroker/auditloghandling/AuditLogableBase.java
+++ 
b/backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dal/dbbroker/auditloghandling/AuditLogableBase.java
@@ -370,6 +370,9 @@
             } else if (getVm() != null) {
                 mVdsGroupId = getVm().getvds_group_id();
                 mVdsGroup = getVdsGroupDAO().get(mVdsGroupId);
+            } else if (getVmTemplate() != null) {
+                mVdsGroupId = getVmTemplate().getvds_group_id();
+                mVdsGroup = getVdsGroupDAO().get(mVdsGroupId);
             }
         }
         return mVdsGroup;


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I13bc346d5ac4d483106100a080aba9e1b052110f
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alona Kaplan <alkap...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to