container_internal: don't ignore error from cleanupNetwork()

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>

Closes: #1002
Approved by: rhatdan
This commit is contained in:
Giuseppe Scrivano
2018-06-26 19:33:52 +02:00
committed by Atomic Bot
parent 80131339b7
commit 8ee8f84734

View File

@ -923,7 +923,7 @@ func (c *Container) cleanup() error {
// Clean up network namespace, if present
if err := c.cleanupNetwork(); err != nil {
lastError = nil
lastError = err
}
if err := c.cleanupCgroups(); err != nil {