Skip to content
Snippets Groups Projects
Unverified Commit e53e4440 authored by Matthias Schiffer's avatar Matthias Schiffer Committed by GitHub
Browse files

gluon-core: always store primary MAC address in lowercase hex digits (#2579)

Depending on the source of the primary MAC address, uppercase digits
would be used on some devices. Convert the address to lowercase for
consistency.

We only change the case for newly configured nodes to avoid changing the
node ID and derives MAC addresses for existing installations.
parent 00131672
No related branches found
No related tags found
No related merge requests found
...@@ -147,7 +147,7 @@ for _, matcher in ipairs(primary_addrs) do ...@@ -147,7 +147,7 @@ for _, matcher in ipairs(primary_addrs) do
if platform.match(unpack(match)) then if platform.match(unpack(match)) then
local addr = f() local addr = f()
if addr then if addr then
sysconfig.primary_mac = addr sysconfig.primary_mac = addr:lower()
return return
end end
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment