Log error if pipe deletion fails
Hopefully this helps to shed some light on #42.
This commit is contained in:
parent
aecd42dbb0
commit
7d7e33dc93
|
@ -234,7 +234,11 @@ func freeipmiOutput(cmd string, target ipmiTarget, arg ...string) ([]byte, error
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
defer os.Remove(pipe)
|
defer func() {
|
||||||
|
if err := os.Remove(pipe); err != nil {
|
||||||
|
log.Errorf("Error deleting named pipe: %s", err)
|
||||||
|
}
|
||||||
|
}()
|
||||||
|
|
||||||
args := []string{"--config-file", pipe}
|
args := []string{"--config-file", pipe}
|
||||||
if !targetIsLocal(target.host) {
|
if !targetIsLocal(target.host) {
|
||||||
|
|
Loading…
Reference in New Issue