diff --git a/mapper/os_info.go b/mapper/os_info.go index 7e53c633..fd998f14 100644 --- a/mapper/os_info.go +++ b/mapper/os_info.go @@ -12,6 +12,9 @@ type OSInfo struct { } func (o OSInfo) FromInternal(data map[string]interface{}) { + if data == nil { + return + } cpuInfo := map[string]interface{}{ "count": values.GetValueN(data, "capacity", "cpu"), }