Skip to content

Commit

Permalink
Fixed uses of FilesUsing struct
Browse files Browse the repository at this point in the history
  • Loading branch information
mrodm committed Feb 1, 2018
1 parent 4bc3b38 commit 0a89acd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pouch.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion state.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 0a89acd

Please sign in to comment.