Gilad Chaplik has uploaded a new change for review.

Change subject: webadmin: SDs missing from tree (#851853)
......................................................................

webadmin: SDs missing from tree (#851853)

https://bugzilla.redhat.com/851853

The webadmin's left hand side tree was missing individual
storage domains under the storage group Tree pane.
The problem was a wrong use of 'instanceof' operator.

Change-Id: I2de63a284c120f059fa11095e9997f6b22a195da
Signed-off-by: Gilad Chaplik <[email protected]>
---
M 
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/SystemTreeModel.java
1 file changed, 1 insertion(+), 3 deletions(-)


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

diff --git 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/SystemTreeModel.java
 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/SystemTreeModel.java
index 571f168..88a874f 100644
--- 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/SystemTreeModel.java
+++ 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/SystemTreeModel.java
@@ -348,9 +348,7 @@
             {
                 continue;
             }
-            if (returnValue.getReturnValue() instanceof storage_domains) {
-                storages = (ArrayList<storage_domains>) 
returnValue.getReturnValue();
-            }
+            storages = (ArrayList<storage_domains>) 
returnValue.getReturnValue();
 
             SystemTreeItemModel dataCenterItem = new SystemTreeItemModel();
             dataCenterItem.setType(SystemTreeItemType.DataCenter);


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

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

Reply via email to