mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
This fixes issue of warning when deploying vm as non-root admin user account.
This commit is contained in:
parent
7a3a882d12
commit
2fad5bea31
@ -377,6 +377,10 @@
|
||||
// Step 4: Data disk offering
|
||||
function(args) {
|
||||
var isRequired = (args.currentData["select-template"] == "select-iso" ? true : false);
|
||||
var templateFilter = 'executable'
|
||||
if (isAdmin()) {
|
||||
templateFilter = 'all'
|
||||
}
|
||||
$.ajax({
|
||||
url: createURL("listDiskOfferings"),
|
||||
dataType: "json",
|
||||
@ -389,7 +393,7 @@
|
||||
url: createURL("listTemplates"),
|
||||
data: {
|
||||
id: args.currentData.templateid,
|
||||
templatefilter: 'all'
|
||||
templatefilter: templateFilter
|
||||
},
|
||||
dataType: "json",
|
||||
async: false,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user