mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-6893: fix enum ValueOf issue which causes systemvm fail to start
(cherry picked from commit 63ff5a7cbc3341809884e47796476d47ace03961) (cherry picked from commit d0e0edca111feb71e7cd8267d9c28820d85b12f9)
This commit is contained in:
parent
a2acae13e3
commit
daa57f67d6
@ -3999,7 +3999,7 @@ public class LibvirtComputingResource extends ServerResourceBase implements Serv
|
|||||||
if ((volumeObjectTO.getIopsWriteRate() != null) && (volumeObjectTO.getIopsWriteRate() > 0))
|
if ((volumeObjectTO.getIopsWriteRate() != null) && (volumeObjectTO.getIopsWriteRate() > 0))
|
||||||
disk.setIopsWriteRate(volumeObjectTO.getIopsWriteRate());
|
disk.setIopsWriteRate(volumeObjectTO.getIopsWriteRate());
|
||||||
if (volumeObjectTO.getCacheMode() != null)
|
if (volumeObjectTO.getCacheMode() != null)
|
||||||
disk.setCacheMode(DiskDef.diskCacheMode.valueOf(volumeObjectTO.getCacheMode().toString()));
|
disk.setCacheMode(DiskDef.diskCacheMode.valueOf(volumeObjectTO.getCacheMode().toString().toUpperCase()));
|
||||||
}
|
}
|
||||||
vm.getDevices().addDevice(disk);
|
vm.getDevices().addDevice(disk);
|
||||||
}
|
}
|
||||||
@ -4162,7 +4162,7 @@ public class LibvirtComputingResource extends ServerResourceBase implements Serv
|
|||||||
diskdef.setIopsWriteRate(iopsWriteRate);
|
diskdef.setIopsWriteRate(iopsWriteRate);
|
||||||
|
|
||||||
if (cacheMode != null) {
|
if (cacheMode != null) {
|
||||||
diskdef.setCacheMode(DiskDef.diskCacheMode.valueOf(cacheMode));
|
diskdef.setCacheMode(DiskDef.diskCacheMode.valueOf(cacheMode.toUpperCase()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user