runtime: drop spurious message log

fix a regression introduced by 1d36501f961889f554daf3c696fe95443ef211b6

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano
2019-07-09 20:49:21 +02:00
parent 81e722d086
commit 18c4d73867

View File

@ -439,10 +439,13 @@ func (r *Runtime) removeContainer(ctx context.Context, c *Container, force bool,
} }
} else { } else {
if err := r.state.RemoveContainer(c); err != nil { if err := r.state.RemoveContainer(c); err != nil {
if cleanupErr == nil {
cleanupErr = err cleanupErr = err
} } else {
logrus.Errorf("removing container: %v", err) logrus.Errorf("removing container: %v", err)
} }
}
}
// Set container as invalid so it can no longer be used // Set container as invalid so it can no longer be used
c.valid = false c.valid = false