diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-03-07 22:04:26 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-03-07 22:04:26 +0000 |
commit | aec9a784429b714931931be301ecd4bed604a35a (patch) | |
tree | 87461a7cc3e9c81df5b603c54fe283a7539b3c02 /os_client_config | |
parent | 9c550021d3c12a9c7af98aaab3a03af856910009 (diff) | |
parent | d321a14ecbe79c888e891424250c1b5bdfd2ea65 (diff) | |
download | os-client-config-aec9a784429b714931931be301ecd4bed604a35a.tar.gz |
Merge "Pass ironic microversion through from api_version"
Diffstat (limited to 'os_client_config')
-rw-r--r-- | os_client_config/cloud_config.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/os_client_config/cloud_config.py b/os_client_config/cloud_config.py index 5c4c03e..8eae86f 100644 --- a/os_client_config/cloud_config.py +++ b/os_client_config/cloud_config.py @@ -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': |