kubeadm: accept 'Y' and 'y' as reset confirmation

parent b25738b8
......@@ -110,7 +110,7 @@ func NewReset(in io.Reader, ignorePreflightErrors sets.String, forceReset bool,
if err := s.Err(); err != nil {
return nil, err
}
if s.Text() != "y" {
if strings.ToLower(s.Text()) != "y" {
return nil, errors.New("Aborted reset operation")
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment