Merge "Pass ironic microversion through from api_version"

This commit is contained in:
Jenkins 2017-03-07 22:04:26 +00:00 committed by Gerrit Code Review
commit aec9a78442
2 changed files with 10 additions and 0 deletions

View File

@ -376,6 +376,12 @@ class CloudConfig(object):
constructor_kwargs['endpoint'] = endpoint
if service_key == 'network':
constructor_kwargs['api_version'] = version
elif service_key == 'baremetal':
if version != '1':
# Set Ironic Microversion
constructor_kwargs['os_ironic_api_version'] = version
# Version arg is the major version, not the full microstring
constructor_kwargs['version'] = version[0]
else:
constructor_kwargs['version'] = version
if service_key == 'database':

View File

@ -0,0 +1,4 @@
---
features:
- Add support for passing Ironic microversion to the ironicclient
constructor in get_legacy_client.