1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

Feature #3671: Fix bug, NETWORK_SELECT=NO was ignored

This commit is contained in:
Carlos Martín 2016-03-03 17:28:53 +01:00
parent e52fbe4f67
commit d2b66f0ec5
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ module OpenNebulaJSON
def instantiate(params=Hash.new)
if params['template']
select_network = self['TEMPLATE/SUNSTONE_NETWORK_SELECT']
select_network = self['TEMPLATE/SUNSTONE/NETWORK_SELECT']
if (select_network && select_network.upcase == "NO")
params['template'].delete("NIC")
end

View File

@ -50,7 +50,7 @@ define(function(require) {
}
try {
if (template_json.VMTEMPLATE.TEMPLATE.SUNSTONE_NETWORK_SELECT != "NO") {
if (template_json.VMTEMPLATE.TEMPLATE.SUNSTONE.NETWORK_SELECT != "NO") {
var template_nic = template_json.VMTEMPLATE.TEMPLATE.NIC
var nics = []
if ($.isArray(template_nic))