From 1a5b7c362ea3f46c3dca323d71cf623eb275d564 Mon Sep 17 00:00:00 2001 From: Rakesh Date: Fri, 31 Jan 2020 11:12:06 +0100 Subject: [PATCH] engine/orchestration: display numeric value instead of variable name (#3818) If the disk size of the vm to be created is greater than the volume size, then the exception message should display the numeric value instead of variable name --- .../cloudstack/engine/orchestration/VolumeOrchestrator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/orchestration/src/main/java/org/apache/cloudstack/engine/orchestration/VolumeOrchestrator.java b/engine/orchestration/src/main/java/org/apache/cloudstack/engine/orchestration/VolumeOrchestrator.java index 9c4167ff47e..09cbe4fafd2 100644 --- a/engine/orchestration/src/main/java/org/apache/cloudstack/engine/orchestration/VolumeOrchestrator.java +++ b/engine/orchestration/src/main/java/org/apache/cloudstack/engine/orchestration/VolumeOrchestrator.java @@ -645,7 +645,7 @@ public class VolumeOrchestrator extends ManagerBase implements VolumeOrchestrati if (size < 0 || (size > 0 && size < (1024 * 1024 * 1024))) { throw new InvalidParameterValueException("Please specify a size of at least 1 GB."); } else if (size > (MaxVolumeSize.value() * 1024 * 1024 * 1024)) { - throw new InvalidParameterValueException("volume size " + size + ", but the maximum size allowed is " + MaxVolumeSize + " GB."); + throw new InvalidParameterValueException("volume size " + size + ", but the maximum size allowed is " + MaxVolumeSize.value() + " GB."); } return true;