Use defined version instead of service.version parameter

When api_version contains a version that begins with 'v',
We should use the defined version parameters.

Change-Id: I6be932088b4e622efafb2ee83b87cd929b2525d2
Signed-off-by: Yuanbin.Chen <cybing4@gmail.com>
This commit is contained in:
Yuanbin.Chen
2018-03-19 21:11:06 +08:00
parent a42fbe6748
commit 2f61a6757d

View File

@@ -57,7 +57,7 @@ def _get_config_from_profile(profile, authenticator, **kwargs):
if version.startswith('v'):
version = version[1:]
key = cloud_region._make_key('api_version', service_type)
kwargs[key] = service.version
kwargs[key] = version
config_kwargs = config_defaults.get_defaults()
config_kwargs.update(kwargs)