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

nvazquez pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/main by this push:
     new 3395a65  ui: Prevent sending default false for isdynamicallyscalable, 
haenable in EditVM (#5299)
3395a65 is described below

commit 3395a652ee8274c9a18495d4ff349ffe6cfe9e97
Author: davidjumani <[email protected]>
AuthorDate: Tue Aug 10 22:27:50 2021 +0530

    ui: Prevent sending default false for isdynamicallyscalable, haenable in 
EditVM (#5299)
---
 ui/src/views/compute/EditVM.vue | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/ui/src/views/compute/EditVM.vue b/ui/src/views/compute/EditVM.vue
index 9317874..b4b0536 100644
--- a/ui/src/views/compute/EditVM.vue
+++ b/ui/src/views/compute/EditVM.vue
@@ -200,10 +200,13 @@ export default {
         params.name = values.name
         params.displayname = values.displayname
         params.ostypeid = values.ostypeid
-        params.isdynamicallyscalable = values.isdynamicallyscalable || false
-        params.haenable = values.haenable || false
+        if (values.isdynamicallyscalable !== undefined) {
+          params.isdynamicallyscalable = values.isdynamicallyscalable
+        }
+        if (values.haenable !== undefined) {
+          params.haenable = values.haenable
+        }
         params.group = values.group
-
         this.loading = true
 
         api('updateVirtualMachine', params).then(json => {

Reply via email to