From 0a89acd151cb793c1c4cf71a633b40b1c5fd3a20 Mon Sep 17 00:00:00 2001 From: Mario Rodriguez Date: Thu, 1 Feb 2018 18:34:54 +0100 Subject: [PATCH] Fixed uses of FilesUsing struct --- pouch.go | 2 +- state.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pouch.go b/pouch.go index c1c2dff..528d2f1 100644 --- a/pouch.go +++ b/pouch.go @@ -255,7 +255,7 @@ func (p *pouch) Run(ctx context.Context) error { return err } for _, f := range p.State.Secrets[s.Name].FilesUsing { - err = p.resolveFile(p.Files[f]) + err = p.resolveFile(p.Files[f.Path]) if err != nil { return err } diff --git a/state.go b/state.go index e8ffcd4..6f223e9 100644 --- a/state.go +++ b/state.go @@ -281,7 +281,7 @@ func (s *SecretState) TimeToUpdate() time.Duration { func (s *SecretState) RegisterUsage(path string, priority int) { for _, f := range s.FilesUsing { - if f == path { + if f.Path == path { // Already registered return }