fix err handling bug

This commit is contained in:
rasmus 2022-11-06 02:17:00 +02:00
parent 20d867bfcb
commit 36b971a930

View File

@ -202,7 +202,9 @@ func getHostInfo(nodeName string) (h HostInfo, err error) {
h.name = strings.TrimSpace(nodeName)
id, errL := os.ReadFile(MACHINEID)
if errL != nil {
err = errAppend(err, fmt.Errorf("id: %w", errL))
}
h.id = strings.TrimSpace(string(id))