Cap cinder api microversion according to cinderclient
Similarly to e6d1abe938 which covered
novaclient compatibility, honor the maximum API microversion supported
by cinderclient instead of using the latest.
Change-Id: I78c3271e30c12905d503978b1dba202429f173d6
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
@@ -73,8 +73,10 @@ class CinderClientPlugin(microversion_mixin.MicroversionMixin,
|
||||
|
||||
def get_max_microversion(self):
|
||||
if not self.max_microversion:
|
||||
self.max_microversion = api_versions.get_highest_version(
|
||||
self._create()).get_string()
|
||||
current_version = api_versions.get_highest_version(self._create())
|
||||
self.max_microversion = min(
|
||||
api_versions.APIVersion(api_versions.MAX_VERSION),
|
||||
current_version).get_string()
|
||||
return self.max_microversion
|
||||
|
||||
def is_version_supported(self, version):
|
||||
|
||||
Reference in New Issue
Block a user