Skip to content

Commit 8f198e6

Browse files
wkingrh-atomic-bot
authored andcommitted
hooks/1.0.0: Fix 'annotation' -> 'annotations' in JSON
This typo from 68eb128 (pkg/hooks: Version the hook structure and add 1.0.0 hooks, 2018-04-27, #686) was causing any 'annotations' entries in hook JSON to be silently ignored. Signed-off-by: W. Trevor King <[email protected]> Closes: #887 Approved by: rhatdan
1 parent 947e410 commit 8f198e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/hooks/1.0.0/when.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
// When holds hook-injection conditions.
1111
type When struct {
1212
Always *bool `json:"always,omitempty"`
13-
Annotations map[string]string `json:"annotation,omitempty"`
13+
Annotations map[string]string `json:"annotations,omitempty"`
1414
Commands []string `json:"commands,omitempty"`
1515
HasBindMounts *bool `json:"hasBindMounts,omitempty"`
1616

0 commit comments

Comments
 (0)