Skip to content

Commit

Permalink
Fix instantiation of salt funcs in app-id structs
Browse files Browse the repository at this point in the history
  • Loading branch information
jefferai committed Jun 5, 2017
1 parent d3d9370 commit 24fab52
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions builtin/credential/app-id/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ func Backend(conf *logical.BackendConfig) (*framework.Backend, error) {

b.view = conf.StorageView

b.MapAppId.SaltFunc = b.Salt
b.MapUserId.SaltFunc = b.Salt

return b.Backend, nil
}

Expand Down Expand Up @@ -109,9 +112,6 @@ func (b *backend) Salt() (*salt.Salt, error) {
return nil, err
}
b.salt = salt
b.MapAppId.SaltFunc = b.Salt
b.MapUserId.SaltFunc = b.Salt

return salt, nil
}

Expand Down

0 comments on commit 24fab52

Please sign in to comment.