Merge pull request #3233 from wking/fatal-requested-hook-directory-does-not-exist

libpod/container_internal: Make all errors loading explicitly configured hook dirs fatal
This commit is contained in:
OpenShift Merge Robot 2019-07-29 16:39:08 +02:00 committed by GitHub
commit 6665269ab8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View File

@ -1474,10 +1474,6 @@ func (c *Container) setupOCIHooks(ctx context.Context, config *spec.Spec) (exten
} else {
manager, err := hooks.New(ctx, c.runtime.config.HooksDir, []string{"precreate", "poststop"})
if err != nil {
if os.IsNotExist(err) {
logrus.Warnf("Requested OCI hooks directory %q does not exist", c.runtime.config.HooksDir)
return nil, nil
}
return nil, err
}