Skip to content

Commit

Permalink
fix: increase 0-pad width from 3 to 4
Browse files Browse the repository at this point in the history
This is meant as a temporary solution until hostnames are figured out in
SMD. See: OpenCHAMI/smd#43
  • Loading branch information
synackd committed Nov 26, 2024
1 parent 6c2d23d commit 1f70d65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coresmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func Handler4(req, resp *dhcpv4.DHCPv4) (*dhcpv4.DHCPv4, bool) {

// Set client hostname
if ifaceInfo.Type == "Node" {
resp.Options.Update(dhcpv4.OptHostName(fmt.Sprintf("nid%03d", ifaceInfo.CompNID)))
resp.Options.Update(dhcpv4.OptHostName(fmt.Sprintf("nid%04d", ifaceInfo.CompNID)))
}

// Set root path to this server's IP
Expand Down

0 comments on commit 1f70d65

Please sign in to comment.