Merge "Add cache for get_microversion() against Nova"

This commit is contained in:
Jenkins 2017-10-05 13:28:16 +00:00 committed by Gerrit Code Review
commit 69ba91c9cf
1 changed files with 1 additions and 0 deletions

View File

@ -57,6 +57,7 @@ INSECURE = getattr(settings, 'OPENSTACK_SSL_NO_VERIFY', False)
CACERT = getattr(settings, 'OPENSTACK_SSL_CACERT', None)
@memoized
def get_microversion(request, feature):
client = novaclient(request)
min_ver, max_ver = api_versions._get_server_version_range(client)