Commit 742b508d authored by eulerzgy's avatar eulerzgy

fix the optimization of apiversion

parent 86b4e777
......@@ -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)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment