osc-placement/osc_placement/resources
Matt Riedemann cf0d72191f Improve aggregate version check error messages with min_version
The aggregate set/list commands require at least version 1.1 but
if you don't specify any version we default to 1.0 and you get this
unhelpful message:

  Operation or argument is not supported with version 1.0

This change adds a simple min_version kwarg to the version compare
method such that if we fail the version check and the kwarg is passed
we use it to improve the message so the user doesn't have to read
the help of the command to figure out what they did wrong, e.g.:

  Operation or argument is not supported with version 1.0; \
  requires at least version 1.1

This only handles the aggregate set/list commands and could be used
elsewhere but this is just a start.

Change-Id: I28a859918ab78c8aa47e54928cb14339c7c75498
Story: #2005448
Task: #30498
2019-04-17 05:09:12 +00:00
..
__init__.py CLI for resource providers 2017-09-19 16:14:01 +03:00
aggregate.py Improve aggregate version check error messages with min_version 2019-04-17 05:09:12 +00:00
allocation.py Fix docstring for delete allocation method 2018-07-02 10:37:33 +08:00
allocation_candidate.py Microversion 1.21 support 2019-03-06 18:28:47 +00:00
common.py CLI for resource providers 2017-09-19 16:14:01 +03:00
inventory.py RP delete inventories (v1.5) 2018-05-01 13:24:19 -04:00
resource_class.py Resource class set (v1.7) 2018-05-17 09:54:17 -04:00
resource_provider.py Add support for 1.18 microversion 2019-03-01 14:49:20 +00:00
trait.py Use openstackdocstheme instead of oslosphinx 2019-04-05 11:41:52 +01:00
usage.py Usages per project and user (v1.8, v1.9) 2018-06-29 16:52:41 -04:00