Merge pull request #3538 from giuseppe/fix-some-regressions

runtime: drop spurious message log
This commit is contained in:
OpenShift Merge Robot 2019-07-10 17:27:53 +02:00 committed by GitHub
commit df3f5afad1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -439,9 +439,12 @@ func (r *Runtime) removeContainer(ctx context.Context, c *Container, force bool,
}
} else {
if err := r.state.RemoveContainer(c); err != nil {
cleanupErr = err
if cleanupErr == nil {
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