Skip to content

Commit

Permalink
update default's password variable from redis5Password to defaultPass…
Browse files Browse the repository at this point in the history
…word

Signed-off-by: Valina Li <valina.li@intel.com>
  • Loading branch information
vli11 committed May 20, 2022
1 parent 702d8bd commit 4169e60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/security/secretstore/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -371,15 +371,15 @@ func (b *Bootstrap) BootstrapHandler(ctx context.Context, _ *sync.WaitGroup, _ s
}

lc.Info("Generating new password for Redis DB")
redis5Password, err := cred.GeneratePassword(ctx)
defaultPassword, err := cred.GeneratePassword(ctx)
if err != nil {
lc.Error("failed to generate default password")
os.Exit(1)
}

redis5Pair = UserPasswordPair{
User: "default",
Password: redis5Password,
Password: defaultPassword,
}
} else {
lc.Info("Redis DB credentials exist, skipping generating new password")
Expand Down

0 comments on commit 4169e60

Please sign in to comment.