Don't fail fetching machine information when not available
This commit is contained in:
parent
cf9c76c06c
commit
aa8697140d
@ -243,28 +243,27 @@ func getMachineInfo(sysFs sysfs.SysFs, fsInfo fs.FsInfo) (*info.MachineInfo, err
|
||||
|
||||
filesystems, err := fsInfo.GetGlobalFsInfo()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
glog.Errorf("Failed to get global filesystem information: %v", err)
|
||||
}
|
||||
|
||||
diskMap, err := sysinfo.GetBlockDeviceInfo(sysFs)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
glog.Errorf("Failed to get disk map: %v", err)
|
||||
}
|
||||
|
||||
netDevices, err := sysinfo.GetNetworkDevices(sysFs)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
glog.Errorf("Failed to get network devices: %v", err)
|
||||
}
|
||||
|
||||
topology, numCores, err := getTopology(sysFs, string(cpuinfo))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
glog.Errorf("Failed to get topology information: %v", err)
|
||||
}
|
||||
|
||||
systemUUID, err := sysinfo.GetSystemUUID(sysFs)
|
||||
if err != nil {
|
||||
glog.Errorf("Failed to get system UUID: %v", err)
|
||||
systemUUID = ""
|
||||
}
|
||||
|
||||
machineInfo := &info.MachineInfo{
|
||||
|
Loading…
Reference in New Issue
Block a user