Added a skip of unconfigured network devices

Signed-off-by: digimer <mkelly@alteeve.ca>
main
digimer 9 months ago
parent ad0a353a89
commit 9689647110
  1. 4
      scancore-agents/scan-network/scan-network

@ -3162,6 +3162,10 @@ sub check_interfaces
network_interface_name => $network_interface_name, network_interface_name => $network_interface_name,
new_nm_device => $new_nm_device, new_nm_device => $new_nm_device,
}}); }});
# If there's no device and no interface name, ignore it.
next if ((not $new_nm_name) && (not $new_nm_device));
my $network_interface_uuid = $anvil->Database->insert_or_update_network_interfaces({ my $network_interface_uuid = $anvil->Database->insert_or_update_network_interfaces({
debug => 2, debug => 2,
network_interface_nm_uuid => $new_nm_uuid, network_interface_nm_uuid => $new_nm_uuid,

Loading…
Cancel
Save