You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ro...@apache.org on 2019/03/29 06:43:34 UTC

[cloudstack] branch master updated: ui: use executable template filter for users (#3214)

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.git


The following commit(s) were added to refs/heads/master by this push:
     new 4985e57  ui: use executable template filter for users (#3214)
4985e57 is described below

commit 4985e57f302aec0a093548842a64b2c7d7b5ede5
Author: Rohit Yadav <ro...@apache.org>
AuthorDate: Fri Mar 29 12:13:26 2019 +0530

    ui: use executable template filter for users (#3214)
    
    Problem: When reinstalling a VM, the UI only shows featured templates and not all possible list of allowed templates.
    Root Cause: The list of templates for reinstall used featured as filter in ‘listTemplates’ API which did not include all available options.
    Solution: The issue is fixed by using the executable template filter of the ‘listTemplates’ API to list all
    possible templates that a user is allowed to use to deploy a VM.
---
 ui/scripts/instances.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ui/scripts/instances.js b/ui/scripts/instances.js
index b006447..57a060f 100644
--- a/ui/scripts/instances.js
+++ b/ui/scripts/instances.js
@@ -1137,7 +1137,7 @@
                                     label: 'label.select.a.template',
                                     select: function(args) {
                                         var data = {
-                                            templatefilter: 'featured'
+                                            templatefilter: 'executable'
                                         };
                                         $.ajax({
                                             url: createURL('listTemplates'),