From b8a79aba9222f3b9bce865fb8fd4fca475b1bb63 Mon Sep 17 00:00:00 2001 From: davidjumani Date: Fri, 16 Oct 2020 18:16:28 +0530 Subject: [PATCH] Elaborating error --- .../api/command/user/template/RegisterTemplateCmd.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/src/main/java/org/apache/cloudstack/api/command/user/template/RegisterTemplateCmd.java b/api/src/main/java/org/apache/cloudstack/api/command/user/template/RegisterTemplateCmd.java index a26dece4d21..67894ff9f87 100644 --- a/api/src/main/java/org/apache/cloudstack/api/command/user/template/RegisterTemplateCmd.java +++ b/api/src/main/java/org/apache/cloudstack/api/command/user/template/RegisterTemplateCmd.java @@ -344,15 +344,15 @@ public class RegisterTemplateCmd extends BaseCmd implements UserCmd { if (getHypervisor().equalsIgnoreCase(Hypervisor.HypervisorType.VMware.toString())) { if (osTypeId != null) { - throw new ServerApiException(ApiErrorCode.PARAM_ERROR, "ostypeid is not supported on VMWare"); + throw new ServerApiException(ApiErrorCode.PARAM_ERROR, "ostypeid is not supported on VMWare, as we honour what is defined in the template"); } details = getDetails(); if (details.containsKey(VmDetailConstants.ROOT_DISK_CONTROLLER)) { - throw new ServerApiException(ApiErrorCode.PARAM_ERROR, "rootDiskController is not supported on VMWare"); + throw new ServerApiException(ApiErrorCode.PARAM_ERROR, "rootDiskController is not supported on VMWare, as we honour what is defined in the template"); } if (details.containsKey(VmDetailConstants.NIC_ADAPTER)) { - throw new ServerApiException(ApiErrorCode.PARAM_ERROR, "nicAdapter is not supported on VMWare"); + throw new ServerApiException(ApiErrorCode.PARAM_ERROR, "nicAdapter is not supported on VMWare, as we honour what is defined in the template"); } } }