From 4ec337fd2a9c93f2a8072d885791e18152c39fcc Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Sat, 29 May 2021 16:15:40 +0530 Subject: [PATCH] ui: pass requireshvm param for register/upload template API (#5050) Signed-off-by: Abhishek Kumar --- 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 704cda59ef6..0f65cb56e4b 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 => {