From 595a6d8da60983d7651480f483e88b3fc7f0b61d Mon Sep 17 00:00:00 2001 From: galal-hussein Date: Tue, 21 Nov 2017 18:33:04 +0200 Subject: [PATCH] Fix question for kubernetes cluster remove --- cmd/cluster.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/cluster.go b/cmd/cluster.go index 8cfd5de2..143ff99c 100644 --- a/cmd/cluster.go +++ b/cmd/cluster.go @@ -6,6 +6,7 @@ import ( "io/ioutil" "os" "path/filepath" + "strings" "github.com/rancher/rke/cluster" "github.com/rancher/rke/pki" @@ -220,6 +221,7 @@ func clusterDownFromCli(ctx *cli.Context) error { reader := bufio.NewReader(os.Stdin) fmt.Printf("Are you sure you want to remove Kubernetes cluster [y/n]: ") input, err := reader.ReadString('\n') + input = strings.TrimSpace(input) if err != nil { return err }