mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-25 22:26:26 +09:00
feature #3671: Check if SUNSTONE vector is defined in the VM template
This commit is contained in:
1 parent
91f92de5cb
commit
01ef480214
1 file changed
+14
-14
+14
-14
@@ -136,22 +136,22 @@ define(function(require) {
|
||||
|
||||
function _fill(context, templateJSON) {
|
||||
var sunstone_template = templateJSON.SUNSTONE;
|
||||
if (sunstone_template &&
|
||||
sunstone_template["CAPACITY_SELECT"] &&
|
||||
sunstone_template["CAPACITY_SELECT"].toUpperCase() == "NO") {
|
||||
$("#sunstone_capacity_select", context).attr("checked", "checked");
|
||||
if (sunstone_template) {
|
||||
if (sunstone_template["CAPACITY_SELECT"] &&
|
||||
sunstone_template["CAPACITY_SELECT"].toUpperCase() == "NO") {
|
||||
$("#sunstone_capacity_select", context).attr("checked", "checked");
|
||||
}
|
||||
|
||||
delete sunstone_template["CAPACITY_SELECT"];
|
||||
|
||||
if (sunstone_template["NETWORK_SELECT"] &&
|
||||
sunstone_template["NETWORK_SELECT"].toUpperCase() == "NO") {
|
||||
$("#sunstone_network_select", context).attr("checked", "checked");
|
||||
}
|
||||
|
||||
delete sunstone_template["NETWORK_SELECT"];
|
||||
}
|
||||
|
||||
delete sunstone_template["CAPACITY_SELECT"];
|
||||
|
||||
if (sunstone_template &&
|
||||
sunstone_template["NETWORK_SELECT"] &&
|
||||
sunstone_template["NETWORK_SELECT"].toUpperCase() == "NO") {
|
||||
$("#sunstone_network_select", context).attr("checked", "checked");
|
||||
}
|
||||
|
||||
delete sunstone_template["NETWORK_SELECT"];
|
||||
|
||||
if (templateJSON["HYPERVISOR"] == 'vcenter' &&
|
||||
templateJSON["KEEP_DISKS_ON_DONE"] &&
|
||||
templateJSON["KEEP_DISKS_ON_DONE"].toLowerCase() == "yes" ) {
|
||||
|
||||
Reference in new issue
Block a user