mirror of https://github.com/apache/cloudstack.git
Fixed invalid ostypeid when not using deployasis (#5033)
This commit is contained in:
parent
5f734f718e
commit
5cbc1d9b18
|
|
@ -183,7 +183,7 @@ public class GetUploadParamsForTemplateCmd extends AbstractGetUploadParamsCmd {
|
|||
if (!hypervisor.equalsIgnoreCase(Hypervisor.HypervisorType.VMware.toString()) && osTypeId == null) {
|
||||
throw new ServerApiException(ApiErrorCode.PARAM_ERROR, "Missing parameter ostypeid");
|
||||
}
|
||||
if (hypervisor.equalsIgnoreCase(Hypervisor.HypervisorType.VMware.toString()) && osTypeId != null) {
|
||||
if (hypervisor.equalsIgnoreCase(Hypervisor.HypervisorType.VMware.toString()) && deployAsIs && osTypeId != null) {
|
||||
throw new ServerApiException(ApiErrorCode.PARAM_ERROR, "Invalid parameter ostypeid, not applicable for VMware");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue