mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
enum name changed for logger update reverted (#9922)
This commit is contained in:
parent
b38ee63c48
commit
b75742da43
@ -24,7 +24,7 @@ import org.apache.commons.collections.CollectionUtils;
|
||||
|
||||
public class LibvirtStoragePoolDef {
|
||||
public enum PoolType {
|
||||
ISCSI("iscsi"), NETFS("netfs"), loggerICAL("logical"), DIR("dir"), RBD("rbd"), GLUSTERFS("glusterfs"), POWERFLEX("powerflex");
|
||||
ISCSI("iscsi"), NETFS("netfs"), LOGICAL("logical"), DIR("dir"), RBD("rbd"), GLUSTERFS("glusterfs"), POWERFLEX("powerflex");
|
||||
String _poolType;
|
||||
|
||||
PoolType(String poolType) {
|
||||
|
||||
@ -352,7 +352,7 @@ public class LibvirtStorageAdaptor implements StorageAdaptor {
|
||||
String volgroupName = path;
|
||||
volgroupName = volgroupName.replaceFirst("/", "");
|
||||
|
||||
LibvirtStoragePoolDef spd = new LibvirtStoragePoolDef(PoolType.loggerICAL, volgroupName, uuid, host, volgroupPath, volgroupPath);
|
||||
LibvirtStoragePoolDef spd = new LibvirtStoragePoolDef(PoolType.LOGICAL, volgroupName, uuid, host, volgroupPath, volgroupPath);
|
||||
StoragePool sp = null;
|
||||
try {
|
||||
logger.debug(spd.toString());
|
||||
@ -544,7 +544,7 @@ public class LibvirtStorageAdaptor implements StorageAdaptor {
|
||||
type = StoragePoolType.Filesystem;
|
||||
} else if (spd.getPoolType() == LibvirtStoragePoolDef.PoolType.RBD) {
|
||||
type = StoragePoolType.RBD;
|
||||
} else if (spd.getPoolType() == LibvirtStoragePoolDef.PoolType.loggerICAL) {
|
||||
} else if (spd.getPoolType() == LibvirtStoragePoolDef.PoolType.LOGICAL) {
|
||||
type = StoragePoolType.CLVM;
|
||||
} else if (spd.getPoolType() == LibvirtStoragePoolDef.PoolType.GLUSTERFS) {
|
||||
type = StoragePoolType.Gluster;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user