Skip to content

Commit

Permalink
handle prefix correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
marcsauter committed Mar 11, 2019
1 parent 7253911 commit a27ec96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/synchronizer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ func (c *config) synchronize() error {
continue
}
// only if vault secret is not in secrets
if _, ok := c.Secrets[s.Name]; ok {
if _, ok := c.Secrets[strings.TrimPrefix(s.Name, c.SecretPrefix)]; ok {
continue
}
log.Println("delete secret", s.Name)
Expand Down

0 comments on commit a27ec96

Please sign in to comment.