fix the optimization of apiversion

This commit is contained in:
eulerzgy 2015-09-15 01:16:10 +08:00
parent 86b4e777e1
commit 742b508d9d

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)
}