mirror of
https://github.com/danderson/netboot.git
synced 2026-05-05 12:26:38 +02:00
parent
f061a783a7
commit
445f92459b
@ -154,7 +154,9 @@ func (b *apibooter) getAPIResponse(hw net.HardwareAddr) (io.ReadCloser, error) {
|
||||
|
||||
func (b *apibooter) BootSpec(m Machine) (*Spec, error) {
|
||||
body, err := b.getAPIResponse(m.MAC)
|
||||
defer body.Close()
|
||||
if body != nil {
|
||||
defer body.Close()
|
||||
}
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user