kubectl is double printing errors

cobra/command prints errs that are returned by cmd.Execute(), so
printing it twice does not accomplish anything.
pull/6/head
Clayton Coleman 2015-01-14 20:11:51 -05:00
parent b0d9ad70de
commit 831557408b
1 changed files with 0 additions and 3 deletions

View File

@ -20,14 +20,11 @@ import (
"os"
"github.com/GoogleCloudPlatform/kubernetes/pkg/kubectl/cmd"
"github.com/golang/glog"
)
func main() {
cmd := cmd.NewFactory().NewKubectlCommand(os.Stdout)
if err := cmd.Execute(); err != nil {
glog.Errorf("error: %v", err)
os.Exit(1)
}
}