diff options
author | W. Trevor King <wking@tremily.us> | 2018-06-03 11:49:18 -0700 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-06-04 13:01:56 +0000 |
commit | 8f198e67ca3a7f717823c974fe52791b94a8c5b1 (patch) | |
tree | 40d4f2b755af012548cb5fcd5360ab390b98aef1 /pkg | |
parent | 947e410fe6e731743f2f25df3cf4b79cdcfbbf15 (diff) | |
download | podman-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')
-rw-r--r-- | pkg/hooks/1.0.0/when.go | 2 |
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"` |