Merge pull request #1577 from rhatdan/hooks

Need to allocate memory for hook struct
This commit is contained in:
OpenShift Merge Robot 2018-10-02 06:12:52 -07:00 committed by GitHub
commit 08898cb5ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1286,7 +1286,7 @@ func (c *Container) setupOCIHooks(ctx context.Context, config *spec.Spec) (exten
}
}
var allHooks map[string][]spec.Hook
allHooks := make(map[string][]spec.Hook)
for _, hDir := range c.runtime.config.HooksDir {
manager, err := hooks.New(ctx, []string{hDir}, []string{"poststop"}, lang)
if err != nil {