mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 20:02:38 +09:00
bug #3506: Ignore empty interfaces
This commit is contained in:
1 parent
b1ea19e192
commit
ae78f39598
1 file changed
+8
-3
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user