Sean McGinnis bccbd510a7 Fix max version handling for help output
Commit fefe331f218d73ba6d1d7acf81b5eb02609c953e incorrectly set the
default API version to the max the client knew about in order to get the
full help output, including all microversioned commands.

The original intent was to have help print out information for all
versions, but still require the user to specify a version if they wanted
to use any microversioned version of an API. The code accidentally made
it so all commands would request the max version the client knew about.
This meant an unspecified request would get the newer functionality
rather than the default v3 functionality, and also meant the client
could request a microversion higher than what the server knew about,
resulting in an unexpected error being returned.

To keep the originally intended functionality, but keep all help output,
this only uses the max API version for the help command unless the user
specifies otherwise.

Closes-bug: #1813967

Change-Id: I20f6c5471ffefe5524a4d48c967e2e8db53233f1
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2019-01-30 19:00:51 -06:00
..
2017-03-24 13:24:50 +02:00
2018-09-13 18:51:17 -06:00
2019-01-28 14:40:45 +08:00
2018-12-21 06:16:55 +00:00
2017-03-15 13:42:49 +01:00
2017-07-20 15:20:11 +08:00
2018-12-21 06:16:55 +00:00
2017-07-24 09:06:28 -04:00
2018-09-13 18:51:17 -06:00