Skip to content

Commit

Permalink
cluster: kubeadmin: Update error message
Browse files Browse the repository at this point in the history
UpdateKubeAdminUserPassword() does not generate a kubeadmin password, it
only reads it, so the error message should say "Could not read ..", not
"Could not generate .."
  • Loading branch information
cfergeau authored and openshift-merge-robot committed May 15, 2023
1 parent a712260 commit 472a7b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/crc/cluster/kubeadmin_password.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func UpdateKubeAdminUserPassword(ctx context.Context, ocConfig oc.Config, newPas

kubeAdminPassword, err := GetKubeadminPassword()
if err != nil {
return fmt.Errorf("Cannot generate the kubeadmin user password: %w", err)
return fmt.Errorf("Cannot read the kubeadmin user password from file: %w", err)
}
credentials := map[string]string{
"developer": "developer",
Expand Down

0 comments on commit 472a7b7

Please sign in to comment.