We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54ad848 commit 1cd7665Copy full SHA for 1cd7665
providers/os/resources/usb/parser_plist.go
@@ -7,6 +7,8 @@ import (
7
"fmt"
8
"strconv"
9
"strings"
10
+
11
+ "go.mondoo.com/cnquery/v12/providers/os/resources/plist"
12
)
13
14
type USBDevice struct {
@@ -32,6 +34,11 @@ type USBDevice struct {
32
34
func ParseMacosIORegData(data any, devices *[]USBDevice) {
33
35
// Process the data based on its type
36
switch v := data.(type) {
37
+ case plist.Data:
38
+ // root object, we need to convert it to map[string]any
39
+ obj := data.(plist.Data)
40
+ // typecase so that we reach case map[string]any
41
+ ParseMacosIORegData(map[string]any(obj), devices)
42
case []any:
43
// An array of entries
44
for _, entry := range v {
0 commit comments