This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack-primate.git


The following commit(s) were added to refs/heads/master by this push:
     new ec13d9d  deployvm : Setting default cpunumber and memory to 0 (#628)
ec13d9d is described below

commit ec13d9d84ebe67a88d1ce11f2935096596c2795a
Author: davidjumani <[email protected]>
AuthorDate: Fri Aug 28 12:34:46 2020 +0530

    deployvm : Setting default cpunumber and memory to 0 (#628)
---
 src/views/compute/DeployVM.vue                | 2 +-
 src/views/compute/wizard/ComputeSelection.vue | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/views/compute/DeployVM.vue b/src/views/compute/DeployVM.vue
index 20061c7..4046d70 100644
--- a/src/views/compute/DeployVM.vue
+++ b/src/views/compute/DeployVM.vue
@@ -191,7 +191,7 @@
                       :preFillContent="dataPreFill"
                       :computeOfferingId="instanceConfig.computeofferingid"
                       :isConstrained="'serviceofferingdetails' in 
serviceOffering"
-                      :minCpu="'serviceofferingdetails' in serviceOffering ? 
serviceOffering.serviceofferingdetails.mincpunumber*1 : 1"
+                      :minCpu="'serviceofferingdetails' in serviceOffering ? 
serviceOffering.serviceofferingdetails.mincpunumber*1 : 0"
                       :maxCpu="'serviceofferingdetails' in serviceOffering ? 
serviceOffering.serviceofferingdetails.maxcpunumber*1 : Number.MAX_SAFE_INTEGER"
                       :minMemory="'serviceofferingdetails' in serviceOffering 
? serviceOffering.serviceofferingdetails.minmemory*1 : 0"
                       :maxMemory="'serviceofferingdetails' in serviceOffering 
? serviceOffering.serviceofferingdetails.maxmemory*1 : Number.MAX_SAFE_INTEGER"
diff --git a/src/views/compute/wizard/ComputeSelection.vue 
b/src/views/compute/wizard/ComputeSelection.vue
index bdac0b1..76aa5e8 100644
--- a/src/views/compute/wizard/ComputeSelection.vue
+++ b/src/views/compute/wizard/ComputeSelection.vue
@@ -95,7 +95,7 @@ export default {
     },
     minCpu: {
       type: Number,
-      default: 1
+      default: 0
     },
     maxCpu: {
       type: Number,

Reply via email to