seed linux clients (mac this wouldn't happen to nor windows)
This commit is contained in:
@@ -14,5 +14,11 @@ func platformMachineID() string {
|
||||
log.Printf("[identity] WARNING: failed to read /etc/machine-id: %v", err)
|
||||
return ""
|
||||
}
|
||||
return strings.TrimSpace(string(data))
|
||||
machineID := strings.TrimSpace(string(data))
|
||||
|
||||
seed := getOrCreateInstanceSeed()
|
||||
if seed != "" {
|
||||
return machineID + "|" + seed
|
||||
}
|
||||
return machineID
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user