don't require config.Version for IsConfigTransportTLS

This commit is contained in:
deads2k
2015-01-08 10:22:09 -05:00
parent 480635bb72
commit 005f2e1bda
4 changed files with 9 additions and 5 deletions

View File

@@ -212,7 +212,7 @@ func main() {
// TODO: don't specify http or https in Host, and infer that from auth options.
clientConfig.Host = "http://localhost:8080"
}
if client.IsConfigTransportTLS(clientConfig) {
if client.IsConfigTransportTLS(*clientConfig) {
auth, err := kubecfg.LoadClientAuthInfoOrPrompt(*authConfig, os.Stdin)
if err != nil {
glog.Fatalf("Error loading auth: %v", err)