fixed bug with wrong trigger type being watched

feature/approvals_reset_on_digest_change
Karolis Rusenas 2018-06-20 22:26:26 +01:00
parent cdb887584d
commit 2213bcb9f9
1 changed files with 3 additions and 0 deletions

View File

@ -128,6 +128,9 @@ func (w *RepositoryWatcher) Watch(images ...*types.TrackedImage) error {
tracked := map[string]bool{}
for _, image := range images {
if image.Trigger != types.TriggerTypePoll {
continue
}
identifier, err := w.watch(image)
if err != nil {
errs = append(errs, err.Error())