Skip to content

Commit 09255c7

Browse files
committed
fix: write machine-id in container
1 parent b0ae728 commit 09255c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

id_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func machineID() (string, error) {
4343
id, err := readFirstFile([]string{
4444
dbusPath, dbusPathEtc, userMachineId,
4545
})
46-
if err != nil {
46+
if err != nil || string(id) == "" {
4747
id, err = readFile(linuxRandomUuid)
4848
if err == nil {
4949
writeFirstFile([]string{

0 commit comments

Comments
 (0)