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:
parent
e52fbe4f67
commit
d2b66f0ec5
@ -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
|
||||
|
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user