Daniel Erez has uploaded a new change for review.

Change subject: core: AddVmCommand - add all SDs to permList
......................................................................

core: AddVmCommand - add all SDs to permList

Adding all target storage domains specified in the
parameters to permList (instead of getStorageDomainId()
which returns an empty guid since MSD).

Change-Id: I7b942af8b5093848922f060c6be44e8a69374634
Bug-Url: https://bugzilla.redhat.com/928399
Signed-off-by: Daniel Erez <de...@redhat.com>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddVmCommand.java
1 file changed, 5 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/69/13669/1

diff --git 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddVmCommand.java
 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddVmCommand.java
index 2cb3de1..9184fc6 100644
--- 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddVmCommand.java
+++ 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddVmCommand.java
@@ -710,9 +710,11 @@
                 VdcObjectType.VmTemplate,
                 getActionType().getActionGroup()));
         if (getVmTemplate() != null && 
!getVmTemplate().getDiskList().isEmpty()) {
-            addStoragePermissionByQuotaMode(permissionList,
-                    GuidUtils.getGuidValue(getStoragePoolId()),
-                    GuidUtils.getGuidValue(getStorageDomainId()));
+            for (DiskImage disk : 
getParameters().getDiskInfoDestinationMap().values()) {
+                addStoragePermissionByQuotaMode(permissionList,
+                        GuidUtils.getGuidValue(getStoragePoolId()),
+                        GuidUtils.getGuidValue(disk.getStorageIds().get(0)));
+            }
         }
         addPermissionSubjectForAdminLevelProperties(permissionList);
         return permissionList;


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

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

Reply via email to