Maor Lipchuk has uploaded a new change for review.

Change subject: webadmin: Use GetEntity instead of storageDomain
......................................................................

webadmin: Use GetEntity instead of storageDomain

The storageDomain selected in the GUI when detaching a local Storage
Domain intialized with storage pool id and therefore will fail the
operation of detach local Storage Domain.

Instead using storageDomain we should use getEntity

Change-Id: I594cee0e9130869b0c3ff55b6ecd004f8a42f61e
Signed-off-by: Maor Lipchuk <[email protected]>
---
M 
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/storage/StorageDataCenterListModel.java
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/24/33624/1

diff --git 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/storage/StorageDataCenterListModel.java
 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/storage/StorageDataCenterListModel.java
index 37942f3..2976929 100644
--- 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/storage/StorageDataCenterListModel.java
+++ 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/storage/StorageDataCenterListModel.java
@@ -509,7 +509,7 @@
             }
             else
             {
-                AsyncDataProvider.getInstance().getLocalStorageHost(new 
AsyncQuery(new Object[] { this, storageDomain },
+                AsyncDataProvider.getInstance().getLocalStorageHost(new 
AsyncQuery(new Object[] { this, getEntity() },
                         new INewAsyncCallback() {
                             @Override
                             public void onSuccess(Object target, Object 
returnValue) {


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

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

Reply via email to