aboutsummaryrefslogtreecommitdiff
path: root/pkg/hooks/1.0.0
diff options
context:
space:
mode:
authorW. Trevor King <wking@tremily.us>2018-06-03 11:49:18 -0700
committerAtomic Bot <atomic-devel@projectatomic.io>2018-06-04 13:01:56 +0000
commit8f198e67ca3a7f717823c974fe52791b94a8c5b1 (patch)
tree40d4f2b755af012548cb5fcd5360ab390b98aef1 /pkg/hooks/1.0.0
parent947e410fe6e731743f2f25df3cf4b79cdcfbbf15 (diff)
downloadpodman-8f198e67ca3a7f717823c974fe52791b94a8c5b1.tar.gz
podman-8f198e67ca3a7f717823c974fe52791b94a8c5b1.tar.bz2
podman-8f198e67ca3a7f717823c974fe52791b94a8c5b1.zip
hooks/1.0.0: Fix 'annotation' -> 'annotations' in JSON
This typo from 68eb128f (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 <wking@tremily.us> Closes: #887 Approved by: rhatdan
Diffstat (limited to 'pkg/hooks/1.0.0')
-rw-r--r--pkg/hooks/1.0.0/when.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/hooks/1.0.0/when.go b/pkg/hooks/1.0.0/when.go
index c23223ec0..a4870d0fa 100644
--- a/pkg/hooks/1.0.0/when.go
+++ b/pkg/hooks/1.0.0/when.go
@@ -10,7 +10,7 @@ import (
// When holds hook-injection conditions.
type When struct {
Always *bool `json:"always,omitempty"`
- Annotations map[string]string `json:"annotation,omitempty"`
+ Annotations map[string]string `json:"annotations,omitempty"`
Commands []string `json:"commands,omitempty"`
HasBindMounts *bool `json:"hasBindMounts,omitempty"`