Skip to content

Commit

Permalink
Fix how we check for OSIE.BaseURL:
Browse files Browse the repository at this point in the history
The object that gets returned from Kubernetes
seems to always come back non-nil. So we need
to also check if the string is empty.

Signed-off-by: Jacob Weinstock <[email protected]>
  • Loading branch information
jacobweinstock committed Jan 30, 2025
1 parent afd6b7a commit ad251cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/ipxe/script/ipxe.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ func (h *Handler) defaultScript(span trace.Span, hw data) (string, error) {
Retries: h.IPXEScriptRetries,
RetryDelay: h.IPXEScriptRetryDelay,
}
if hw.OSIE.BaseURL != nil {
if hw.OSIE.BaseURL != nil && hw.OSIE.BaseURL.String() != "" {
auto.DownloadURL = hw.OSIE.BaseURL.String()
}
if hw.OSIE.Kernel != "" {
Expand Down

0 comments on commit ad251cd

Please sign in to comment.