Project native FreeBSD packages, interfaces, hardware and login observations

This commit is contained in:
2026-11-19 20:06:56 +01:00
parent d05caf6fd3
commit b7d9046996
3 changed files with 47 additions and 1 deletions
+1
View File
@@ -321,6 +321,7 @@ fn device_type(hardware: &Value) -> Option<DeviceType> {
fn inventory_device_type(data: &Value) -> Option<DeviceType> {
device_type(observed(data, "linux.hardware"))
.or_else(|| device_type(observed(data, "windows.hardware")))
.or_else(|| device_type(&data["hardware"]))
}
fn hostname_filter(query: Option<&str>) -> Result<&str, Error> {