Remove the useless version calculation for proxy api deprecated version

This patch use constant instead of the calculation for the proxy API
deprecated version. This is more readable.

Partially implements blueprint deprecate-api-proxies

Change-Id: I5e9972643a7dd2e2559f7f9593b85618df2647c3
This commit is contained in:
He Jie Xu
2016-07-27 10:10:56 +08:00
parent 734151daee
commit 8639559f61
3 changed files with 11 additions and 29 deletions
+2 -1
View File
@@ -102,8 +102,9 @@ _MAX_API_VERSION = "2.36"
DEFAULT_API_VERSION = _MIN_API_VERSION
# All the proxy APIs which related network, images and baremetal
# were deprecated after this version.
# were deprecated from 2.36.
MAX_PROXY_API_SUPPORT_VERSION = '2.35'
MIN_WITHOUT_PROXY_API_SUPPORT_VERSION = '2.36'
# NOTE(cyeoh): min and max versions declared as functions so we can