diff options
| author | Sean McGinnis <sean.mcginnis@gmail.com> | 2018-09-20 11:42:41 -0500 |
|---|---|---|
| committer | Sean McGinnis <sean.mcginnis@gmail.com> | 2018-09-20 11:42:41 -0500 |
| commit | fefe331f218d73ba6d1d7acf81b5eb02609c953e (patch) | |
| tree | dad3763f69f08898209c3149b2b85f4a1db189a3 /cinderclient | |
| parent | 525a8556434517824f7d5c142a56a772b4084601 (diff) | |
| download | python-cinderclient-fefe331f218d73ba6d1d7acf81b5eb02609c953e.tar.gz | |
Default help output to include MV updates
We are inconsistent with some other projects with hiding client help
output for commands added with microversions by default. This often
leads to confusion with users of the CLI not being aware of these
changes.
This changes the default to display all help output. Users can still
specify a version and have the output limited to include only options up
to the version they specify.
Change-Id: I39d90a1ecc824fcf445e98609de47d45e71a0ff6
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
Diffstat (limited to 'cinderclient')
| -rw-r--r-- | cinderclient/shell.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cinderclient/shell.py b/cinderclient/shell.py index 8807b70..841748a 100644 --- a/cinderclient/shell.py +++ b/cinderclient/shell.py @@ -51,7 +51,6 @@ from cinderclient import utils _i18n.enable_lazy() -DEFAULT_MAJOR_OS_VOLUME_API_VERSION = "3" DEFAULT_CINDER_ENDPOINT_TYPE = 'publicURL' V1_SHELL = 'cinderclient.v1.shell' V2_SHELL = 'cinderclient.v2.shell' @@ -534,7 +533,7 @@ class OpenStackCinderShell(object): if not options.os_volume_api_version: api_version = api_versions.get_api_version( - DEFAULT_MAJOR_OS_VOLUME_API_VERSION) + api_versions.MAX_VERSION) else: api_version = api_versions.get_api_version( options.os_volume_api_version) |
