Skip to content

Commit 97d36da

Browse files
authored
Merge pull request #85 from Broot-bite/test-order-machineID
Sorted the order of file paths
2 parents fb023bb + bb35b99 commit 97d36da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func uname() (string, string, error) {
6565
}
6666

6767
func machineID() string {
68-
for _, p := range []string{"sys/devices/virtual/dmi/id/product_uuid", "etc/machine-id", "var/lib/dbus/machine-id"} {
68+
for _, p := range []string{"etc/machine-id", "var/lib/dbus/machine-id", "sys/devices/virtual/dmi/id/product_uuid"} {
6969
payload, err := os.ReadFile(path.Join("/proc/1/root", p))
7070
if err != nil {
7171
klog.Warningln("failed to read machine-id:", err)

0 commit comments

Comments
 (0)