Merge pull request #570 from vmarmol/less-log
Don't fail requests if System UUID is not available.
This commit is contained in:
commit
62a1788621
@ -265,9 +265,10 @@ func getMachineInfo(sysFs sysfs.SysFs) (*info.MachineInfo, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
system_uuid, err := sysinfo.GetSystemUUID(sysFs)
|
systemUUID, err := sysinfo.GetSystemUUID(sysFs)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
glog.Errorf("Failed to get system UUID: %v", err)
|
||||||
|
systemUUID = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
machineInfo := &info.MachineInfo{
|
machineInfo := &info.MachineInfo{
|
||||||
@ -278,7 +279,7 @@ func getMachineInfo(sysFs sysfs.SysFs) (*info.MachineInfo, error) {
|
|||||||
NetworkDevices: netDevices,
|
NetworkDevices: netDevices,
|
||||||
Topology: topology,
|
Topology: topology,
|
||||||
MachineID: getMachineID(),
|
MachineID: getMachineID(),
|
||||||
SystemUUID: system_uuid,
|
SystemUUID: systemUUID,
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, fs := range filesystems {
|
for _, fs := range filesystems {
|
||||||
|
Loading…
Reference in New Issue
Block a user