Liron Aravot has uploaded a new change for review.

Change subject: core: correct storage type for FCP luns
......................................................................

core: correct storage type for FCP luns

When LUN has no connections, it's storage type is FCP.

Change-Id: Ic6ce68f3451aee0ca540cb6289d38782abf94ae7
Bug-Url: https://bugzilla.redhat.com/??????
Signed-off-by: Liron Aravot <[email protected]>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/GetLunsByVgIdQuery.java
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/19/11219/1

diff --git 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/GetLunsByVgIdQuery.java
 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/GetLunsByVgIdQuery.java
index 0fc3ae0..901a548 100644
--- 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/GetLunsByVgIdQuery.java
+++ 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/GetLunsByVgIdQuery.java
@@ -56,6 +56,8 @@
                 StorageServerConnections connection =
                         
getConnection(lunConnections.get(0).getstorage_server_connection());
                 storageType = connection.getstorage_type();
+            } else {
+                storageType = StorageType.FCP;
             }
         }
 


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

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

Reply via email to