mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
proper storage construction (#6797)
This commit is contained in:
parent
73a269e3b3
commit
0aade286f5
@ -113,7 +113,8 @@ public class KVMStoragePoolManager {
|
||||
s_logger.warn(String.format("Duplicate StorageAdaptor type %s, not loading %s", info.storagePoolType().toString(), storageAdaptor.getName()));
|
||||
} else {
|
||||
try {
|
||||
this._storageMapper.put(info.storagePoolType().toString(), storageAdaptor.newInstance());
|
||||
s_logger.info(String.format("adding storage adaptor for %s", storageAdaptor.getName()));
|
||||
this._storageMapper.put(info.storagePoolType().toString(), storageAdaptor.getDeclaredConstructor().newInstance());
|
||||
} catch (Exception ex) {
|
||||
throw new CloudRuntimeException(ex.toString());
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user