Skip to content

Commit 472a7b7

Browse files
cfergeauopenshift-merge-robot
authored andcommitted
cluster: kubeadmin: Update error message
UpdateKubeAdminUserPassword() does not generate a kubeadmin password, it only reads it, so the error message should say "Could not read ..", not "Could not generate .."
1 parent a712260 commit 472a7b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/crc/cluster/kubeadmin_password.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func UpdateKubeAdminUserPassword(ctx context.Context, ocConfig oc.Config, newPas
3939

4040
kubeAdminPassword, err := GetKubeadminPassword()
4141
if err != nil {
42-
return fmt.Errorf("Cannot generate the kubeadmin user password: %w", err)
42+
return fmt.Errorf("Cannot read the kubeadmin user password from file: %w", err)
4343
}
4444
credentials := map[string]string{
4545
"developer": "developer",

0 commit comments

Comments
 (0)