mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-20 10:50:08 +03:00
bug #3506: Ignore empty interfaces
This commit is contained in:
parent
b1ea19e192
commit
ae78f39598
@ -6328,16 +6328,21 @@ $(document).ready(function(){
|
||||
var template_id = $(".tabs-content .content.active .selected", context).attr("opennebula_id");
|
||||
|
||||
var nics = [];
|
||||
var nic;
|
||||
$(".selected_network", context).each(function(){
|
||||
var nic;
|
||||
if ($(this).attr("template_nic")) {
|
||||
nic = JSON.parse($(this).attr("template_nic"))
|
||||
} else {
|
||||
} else if ($(this).attr("opennebula_id")) {
|
||||
nic = {
|
||||
'network_id': $(this).attr("opennebula_id")
|
||||
}
|
||||
} else {
|
||||
nic = undefined;
|
||||
}
|
||||
|
||||
if (nic) {
|
||||
nics.push(nic);
|
||||
}
|
||||
nics.push(nic);
|
||||
});
|
||||
|
||||
var instance_type = $(".provision_instance_types_ul .selected", context);
|
||||
|
Loading…
x
Reference in New Issue
Block a user