1
0
mirror of https://github.com/rancher/rke.git synced 2025-08-19 23:37:48 +00:00

Fix question for kubernetes cluster remove

This commit is contained in:
galal-hussein 2017-11-21 18:33:04 +02:00
parent 0b5e65274c
commit 595a6d8da6

View File

@ -6,6 +6,7 @@ import (
"io/ioutil" "io/ioutil"
"os" "os"
"path/filepath" "path/filepath"
"strings"
"github.com/rancher/rke/cluster" "github.com/rancher/rke/cluster"
"github.com/rancher/rke/pki" "github.com/rancher/rke/pki"
@ -220,6 +221,7 @@ func clusterDownFromCli(ctx *cli.Context) error {
reader := bufio.NewReader(os.Stdin) reader := bufio.NewReader(os.Stdin)
fmt.Printf("Are you sure you want to remove Kubernetes cluster [y/n]: ") fmt.Printf("Are you sure you want to remove Kubernetes cluster [y/n]: ")
input, err := reader.ReadString('\n') input, err := reader.ReadString('\n')
input = strings.TrimSpace(input)
if err != nil { if err != nil {
return err return err
} }