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

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


The following commit(s) were added to refs/heads/4.15 by this push:
     new 4ec337f  ui: pass requireshvm param for register/upload template API 
(#5050)
4ec337f is described below

commit 4ec337fd2a9c93f2a8072d885791e18152c39fcc
Author: Abhishek Kumar <[email protected]>
AuthorDate: Sat May 29 16:15:40 2021 +0530

    ui: pass requireshvm param for register/upload template API (#5050)
    
    Signed-off-by: Abhishek Kumar <[email protected]>
---
 ui/src/views/image/RegisterOrUploadTemplate.vue | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/ui/src/views/image/RegisterOrUploadTemplate.vue 
b/ui/src/views/image/RegisterOrUploadTemplate.vue
index 704cda5..0f65cb5 100644
--- a/ui/src/views/image/RegisterOrUploadTemplate.vue
+++ b/ui/src/views/image/RegisterOrUploadTemplate.vue
@@ -837,6 +837,9 @@ export default {
             }
           }
         }
+        if (!('requireshvm' in params)) { // handled as default true by API
+          params.requireshvm = false
+        }
         if (this.currentForm === 'Create') {
           this.loading = true
           api('registerTemplate', params).then(json => {

Reply via email to