slavkap commented on code in PR #13910:
URL: https://github.com/apache/cloudstack/pull/13910#discussion_r4665134892


##########
plugins/storage/volume/linstor/src/main/java/org/apache/cloudstack/storage/datastore/driver/LinstorPrimaryDataStoreDriverImpl.java:
##########
@@ -914,13 +934,46 @@ private Optional<RemoteHostEndPoint> 
getDiskfullEP(DevelopersApi api, StoragePoo
                 : LinstorUtil.getDiskfulStoragePoolsByPreference(api, 
rscName)) {
             Host host = getEnabledClusterHost(storagePool, 
Collections.singletonList(linSP.getNodeName()));
             if (host != null) {
-                return 
Optional.of(RemoteHostEndPoint.getHypervisorHostEndPoint(host));
+                return host;
             }
             logger.debug("Linstor: no usable cloudstack host for diskful node 
{}, trying next copy",
                     linSP.getNodeName());
         }
         logger.error("Linstor: No diskfull host found.");

Review Comment:
   ```suggestion
           logger.error("Linstor: No diskful host found.");
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to