Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
Merge branch 'fix-notfound' into 'master'
Browse files Browse the repository at this point in the history
Invert keyStoreNotFound boolean

See merge request !5
  • Loading branch information
James Munnelly committed Jun 8, 2017
2 parents 25ff212 + 96f87d9 commit afb8fee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/vault/vault.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func (u *vault) Init() error {

// test every key
for _, key := range keys {
if u.keyStoreNotFound(key) {
if !u.keyStoreNotFound(key) {
return fmt.Errorf("error before init: keystore value for '%s' already exists", key)
}
}
Expand Down

0 comments on commit afb8fee

Please sign in to comment.