Skip to content

Commit 62a1788

Browse files
committed
Merge pull request google#570 from vmarmol/less-log
Don't fail requests if System UUID is not available.
2 parents 4d9cdc0 + 853f2d9 commit 62a1788

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

manager/machine.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,10 @@ func getMachineInfo(sysFs sysfs.SysFs) (*info.MachineInfo, error) {
265265
return nil, err
266266
}
267267

268-
system_uuid, err := sysinfo.GetSystemUUID(sysFs)
268+
systemUUID, err := sysinfo.GetSystemUUID(sysFs)
269269
if err != nil {
270-
return nil, err
270+
glog.Errorf("Failed to get system UUID: %v", err)
271+
systemUUID = ""
271272
}
272273

273274
machineInfo := &info.MachineInfo{
@@ -278,7 +279,7 @@ func getMachineInfo(sysFs sysfs.SysFs) (*info.MachineInfo, error) {
278279
NetworkDevices: netDevices,
279280
Topology: topology,
280281
MachineID: getMachineID(),
281-
SystemUUID: system_uuid,
282+
SystemUUID: systemUUID,
282283
}
283284

284285
for _, fs := range filesystems {

0 commit comments

Comments
 (0)