Skip to content

Commit

Permalink
fix: correct error message for invalid ip=
Browse files Browse the repository at this point in the history
Fix copy pasta in parse NTP address error message.

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
Signed-off-by: Joakim Nohlgård <joakim@nohlgard.se>
  • Loading branch information
jnohlgard authored and smira committed Oct 21, 2024
1 parent ead4699 commit 7c8c72c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/app/machined/pkg/controllers/network/cmdline.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ func ParseCmdlineNetwork(cmdline *procfs.Cmdline) (CmdlineNetworking, error) {

ntpIP, err = netip.ParseAddr(fields[i])
if err != nil {
return settings, fmt.Errorf("error parsing DNS IP: %w", err)
return settings, fmt.Errorf("error parsing NTP IP: %w", err)
}

settings.NTPAddresses = append(settings.NTPAddresses, ntpIP)
Expand Down

0 comments on commit 7c8c72c

Please sign in to comment.