mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Summary: small fix causing trouble when shutting down virtual machines
This commit is contained in:
parent
1ceecc92c8
commit
87fe646953
@ -38,6 +38,10 @@ public class KVMStoragePoolManager {
|
||||
private final Map<String, StorageAdaptor> _storageMapper = new HashMap<String, StorageAdaptor>();
|
||||
|
||||
private StorageAdaptor getStorageAdaptor(StoragePoolType type) {
|
||||
// type can be null: LibVirtComputingResource:3238
|
||||
if (type == null) {
|
||||
return _storageMapper.get("libvirt");
|
||||
}
|
||||
StorageAdaptor adaptor = _storageMapper.get(type.toString());
|
||||
if (adaptor == null) {
|
||||
// LibvirtStorageAdaptor is selected by default
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user