Skip to content

node: fix machine id not being a UUID in some cases#356

Open
perf2711 wants to merge 1 commit into
mainfrom
bugfix/node-machine-uuid
Open

node: fix machine id not being a UUID in some cases#356
perf2711 wants to merge 1 commit into
mainfrom
bugfix/node-machine-uuid

Conversation

@perf2711
Copy link
Copy Markdown
Contributor

@perf2711 perf2711 commented Oct 8, 2025

In some cases, like on Linux, the returned machine ID may not be a GUID, but a hostname:

( cat /var/lib/dbus/machine-id /etc/machine-id 2> /dev/null || hostname ) | head -n 1 || :

This change makes sure that non-GUID results are hashed and returned as GUIDs.

@perf2711 perf2711 requested a review from konraddysput October 8, 2025 11:42
@perf2711 perf2711 self-assigned this Oct 8, 2025
@perf2711 perf2711 added the bug Something isn't working label Oct 8, 2025
@perf2711 perf2711 force-pushed the bugfix/node-machine-uuid branch from 6b78af8 to 5dc0b2c Compare October 8, 2025 11:42
@perf2711 perf2711 force-pushed the bugfix/node-machine-uuid branch from 5dc0b2c to 5db3458 Compare October 8, 2025 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

2 participants