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

Signed-off-by: Alexander Brand <alexbrand09@gmail.com>
This commit is contained in:
Alexander Brand
2018-04-25 16:21:16 -04:00
parent b25738b860
commit 8ea5be8d89

View File

@@ -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")
}
}