changed kubeconfig setup to single line if

pull/73/head
Dan Gillespie 2016-05-13 13:39:01 -07:00
parent 4b5c89486f
commit 77c1d0ce61
1 changed files with 1 additions and 2 deletions

View File

@ -76,8 +76,7 @@ func runStart(cmd *cobra.Command, args []string) {
certAuth := constants.MakeMiniPath("apiserver.crt")
clientCert := constants.MakeMiniPath("apiserver.crt")
clientKey := constants.MakeMiniPath("apiserver.key")
active, err := setupKubeconfig(name, kubeHost, certAuth, clientCert, clientKey)
if err != nil {
if active, err := setupKubeconfig(name, kubeHost, certAuth, clientCert, clientKey); err != nil {
log.Println("Error setting up kubeconfig: ", err)
os.Exit(1)
} else if !active {