mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +00:00
kubeadm: accept 'Y' and 'y' as reset confirmation
Signed-off-by: Alexander Brand <alexbrand09@gmail.com>
This commit is contained in:
parent
b25738b860
commit
8ea5be8d89
@ -110,7 +110,7 @@ func NewReset(in io.Reader, ignorePreflightErrors sets.String, forceReset bool,
|
|||||||
if err := s.Err(); err != nil {
|
if err := s.Err(); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if s.Text() != "y" {
|
if strings.ToLower(s.Text()) != "y" {
|
||||||
return nil, errors.New("Aborted reset operation")
|
return nil, errors.New("Aborted reset operation")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user