more fixes

Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
pull/3688/head
galal-hussein 2021-07-21 22:42:05 +02:00
parent 7ebcc4b134
commit 20a48734c2
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ func (c *Cluster) getBootstrapKeyFromStorage(ctx context.Context, storageClient
return nil, err return nil, err
} }
for _, bootstrapKV := range bootstrapList { for _, bootstrapKV := range bootstrapList {
// checking for empty string bootstrap key // ensure bootstrap is stored in the current token's key
if string(bootstrapKV.Key) == tokenKey { if string(bootstrapKV.Key) == tokenKey {
return &bootstrapKV, nil return &bootstrapKV, nil
} }