Merge pull request #13912 from zhengguoyong/fix-cmd-apiversion

Auto commit by PR queue bot
This commit is contained in:
k8s-merge-robot
2015-09-14 21:37:57 -07:00

View File

@@ -59,10 +59,9 @@ func RunApiVersions(f *cmdutil.Factory, w io.Writer) error {
var expAPIVersions *api.APIVersions
expAPIVersions, err = client.Experimental().ServerAPIVersions()
showExpVersions := (err == nil)
fmt.Fprintf(w, "Available Server Api Versions: %#v\n", *apiVersions)
if showExpVersions {
if err == nil {
fmt.Fprintf(w, "Available Server Experimental Api Versions: %#v\n", *expAPIVersions)
}