mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-6893: fix enum ValueOf issue which causes systemvm fail to start
(cherry picked from commit63ff5a7cbc) (cherry picked from commitd0e0edca11)
This commit is contained in:
parent
807bfb03e7
commit
9928d66fda
|
|
@ -3996,7 +3996,7 @@ public class LibvirtComputingResource extends ServerResourceBase implements Serv
|
|||
if ((volumeObjectTO.getIopsWriteRate() != null) && (volumeObjectTO.getIopsWriteRate() > 0))
|
||||
disk.setIopsWriteRate(volumeObjectTO.getIopsWriteRate());
|
||||
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);
|
||||
}
|
||||
|
|
@ -4159,7 +4159,7 @@ public class LibvirtComputingResource extends ServerResourceBase implements Serv
|
|||
diskdef.setIopsWriteRate(iopsWriteRate);
|
||||
|
||||
if (cacheMode != null) {
|
||||
diskdef.setCacheMode(DiskDef.diskCacheMode.valueOf(cacheMode));
|
||||
diskdef.setCacheMode(DiskDef.diskCacheMode.valueOf(cacheMode.toUpperCase()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue