Skip to content

Commit

Permalink
replication: Fix DR API checks when using a token (#5398)
Browse files Browse the repository at this point in the history
  • Loading branch information
briankassouf authored Sep 25, 2018
1 parent 43bc454 commit 4876b4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vault/token_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ func (c *Core) LookupToken(ctx context.Context, token string) (*logical.TokenEnt
}

// Many tests don't have a token store running
if c.tokenStore == nil {
if c.tokenStore == nil || c.tokenStore.expiration == nil {
return nil, nil
}

Expand Down

0 comments on commit 4876b4a

Please sign in to comment.