weizhouapache commented on code in PR #14320:
URL: https://github.com/apache/cloudstack/pull/14320#discussion_r4525581636


##########
plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/storage/KVMStoragePoolManager.java:
##########
@@ -458,7 +465,7 @@ public synchronized boolean 
deleteStoragePool(StoragePoolType type, String uuid)
     public boolean deleteStoragePool(StoragePoolType type, String uuid, 
Map<String, String> details) {
         StorageAdaptor adaptor = getStorageAdaptor(type);
         boolean deleteStatus;
-        if (type == StoragePoolType.NetworkFilesystem) {
+        if 
(HighAvailabilityManager.LIBVIRT_STORAGE_POOL_TYPES_WITH_HA_SUPPORT.contains(type))
 {
             _haMonitor.unregisterStoragePool(uuid);
             deleteStatus = adaptor.deleteStoragePool(uuid);

Review Comment:
   fixed in 
https://github.com/apache/cloudstack/pull/14320/changes/9e50a474668c4ea3946e14cdfbf65954eb54c573



-- 
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