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
No known key found for this signature in database
GPG Key ID: 4CCE2B5816854A45

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