mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
bug 11814: rename option names, API server does not recognize dot separated name correctly.
This commit is contained in:
parent
49cdc30080
commit
477676c168
@ -1371,9 +1371,9 @@ public class VmwareResource implements StoragePoolResource, ServerResource, Vmwa
|
||||
if (vol.getType() == Volume.Type.ISO) {
|
||||
controllerKey = ideControllerKey;
|
||||
} else {
|
||||
if(vmSpec.getDetails() != null && vmSpec.getDetails().get("root.disk.controller") != null)
|
||||
if(vmSpec.getDetails() != null && vmSpec.getDetails().get(VmDetailConstants.ROOK_DISK_CONTROLLER) != null)
|
||||
{
|
||||
if(vmSpec.getDetails().get("root.disk.controller").equalsIgnoreCase("scsi"))
|
||||
if(vmSpec.getDetails().get(VmDetailConstants.ROOK_DISK_CONTROLLER).equalsIgnoreCase("scsi"))
|
||||
controllerKey = scsiControllerKey;
|
||||
else
|
||||
controllerKey = ideControllerKey;
|
||||
|
||||
@ -19,5 +19,6 @@ package com.cloud.vm;
|
||||
|
||||
public interface VmDetailConstants {
|
||||
public static final String KEYBOARD = "keyboard";
|
||||
public static final String NIC_ADAPTER = "nic_adapter";
|
||||
public static final String NIC_ADAPTER = "nicAdapter";
|
||||
public static final String ROOK_DISK_CONTROLLER = "rootDiskController";
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user