Tal Nisan has uploaded a new change for review.

Change subject: core: Changed storage type check in ConnectAllHostsToLun command
......................................................................

core: Changed storage type check in ConnectAllHostsToLun command

As a part of the effort to remove the type of storage pool the
StoragerHelper getter in ConnectAllHostsToLun command was change from the
storage pool type to the storage domain type

Change-Id: Ifde05e609e9d7f7a02d6447047a434153770d514
Relates-To: https://bugzilla.redhat.com/1038053
Signed-off-by: Tal Nisan <[email protected]>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/ConnectAllHostsToLunCommand.java
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/45/23345/1

diff --git 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/ConnectAllHostsToLunCommand.java
 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/ConnectAllHostsToLunCommand.java
index bdabf10..cd5a0d5 100644
--- 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/ConnectAllHostsToLunCommand.java
+++ 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/ConnectAllHostsToLunCommand.java
@@ -10,6 +10,7 @@
 import org.ovirt.engine.core.common.action.ExtendSANStorageDomainParameters;
 import org.ovirt.engine.core.common.action.VdcReturnValueBase;
 import org.ovirt.engine.core.common.businessentities.LUNs;
+import org.ovirt.engine.core.common.businessentities.StorageType;
 import org.ovirt.engine.core.common.businessentities.VDS;
 import org.ovirt.engine.core.common.businessentities.VdsSpmStatus;
 import org.ovirt.engine.core.common.errors.VdcBLLException;
@@ -100,7 +101,7 @@
             for (Map.Entry<String, List<Guid>> entry : processed.entrySet()) {
                 for (Guid vdsId : entry.getValue()) {
                     LUNs lun = lunsMap.get(entry.getKey());
-                    
StorageHelperDirector.getInstance().getItem(getStoragePool().getStorageType())
+                    
StorageHelperDirector.getInstance().getItem(getStorageDomain().getStorageType())
                             
.disconnectStorageFromLunByVdsId(getStorageDomain(), vdsId, lun);
                 }
             }


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

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

Reply via email to