diff options
author | Balazs Gibizer <balazs.gibizer@ericsson.com> | 2016-01-12 14:52:03 +0100 |
---|---|---|
committer | Balazs Gibizer <balazs.gibizer@ericsson.com> | 2016-01-12 17:30:16 +0100 |
commit | 7cc26eee72196e4ad0ef46f17f4682be0a76c666 (patch) | |
tree | 79d83a38dd32d50f5ebe50dc5d1d27149b213431 | |
parent | 5a3956c3995cf4a81199e96345b91f6ef9f5d29d (diff) | |
download | python-novaclient-7cc26eee72196e4ad0ef46f17f4682be0a76c666.tar.gz |
[microversions] Add support for 2.15
With I3f156d5e5df4d9642bb4b0ffac30a6288459ce61 nova introduced
microversion 2.15 which adds two new policies soft-affinty and
soft-anti-affinity for the server-group api.
This patch bumps the nova client microversion support to 2.15.
The novaclient is transparent regarding the policy value of the
server-group api so no further changes are needed. However the
help text of the policies parameter mentioned the possible policies.
This was removed as the current framework does not support providing
different help text for a parameter depending on the microversion.
Implements: blueprint soft-affinity-for-server-group
Change-Id: I739ed1dd3e4c15e28a269c4f980a12a74fb1def0
-rw-r--r-- | novaclient/__init__.py | 2 | ||||
-rw-r--r-- | novaclient/tests/unit/v2/test_shell.py | 1 | ||||
-rw-r--r-- | novaclient/v2/shell.py | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/novaclient/__init__.py b/novaclient/__init__.py index 50ad863f..84c17c97 100644 --- a/novaclient/__init__.py +++ b/novaclient/__init__.py @@ -25,4 +25,4 @@ API_MIN_VERSION = api_versions.APIVersion("2.1") # when client supported the max version, and bumped sequentially, otherwise # the client may break due to server side new version may include some # backward incompatible change. -API_MAX_VERSION = api_versions.APIVersion("2.14") +API_MAX_VERSION = api_versions.APIVersion("2.15") diff --git a/novaclient/tests/unit/v2/test_shell.py b/novaclient/tests/unit/v2/test_shell.py index bff97ab9..9135cb14 100644 --- a/novaclient/tests/unit/v2/test_shell.py +++ b/novaclient/tests/unit/v2/test_shell.py @@ -2554,6 +2554,7 @@ class ShellTest(utils.TestCase): 9, # doesn't require any changes in novaclient # TODO(andreykurilin): remove 12 when 1522424 will be resolved 12, # doesn't require any changes in novaclient + 15, # doesn't require any changes in novaclient ]) versions_supported = set(range(0, novaclient.API_MAX_VERSION.ver_minor + 1)) diff --git a/novaclient/v2/shell.py b/novaclient/v2/shell.py index a4571ecb..e04ecb83 100644 --- a/novaclient/v2/shell.py +++ b/novaclient/v2/shell.py @@ -4698,7 +4698,7 @@ def do_secgroup_delete_default_rule(cs, args): metavar='<policy>', default=argparse.SUPPRESS, nargs='*', - help=_('Policies for the server groups. ("affinity" or "anti-affinity")')) + help=_('Policies for the server groups.')) @cliutils.arg( '--policy', default=[], |