summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-03-07 22:04:26 +0000
committerGerrit Code Review <review@openstack.org>2017-03-07 22:04:26 +0000
commitaec9a784429b714931931be301ecd4bed604a35a (patch)
tree87461a7cc3e9c81df5b603c54fe283a7539b3c02
parent9c550021d3c12a9c7af98aaab3a03af856910009 (diff)
parentd321a14ecbe79c888e891424250c1b5bdfd2ea65 (diff)
downloados-client-config-aec9a784429b714931931be301ecd4bed604a35a.tar.gz
Merge "Pass ironic microversion through from api_version"
-rw-r--r--os_client_config/cloud_config.py6
-rw-r--r--releasenotes/notes/ironic-microversion-ba5b0f36f11196a6.yaml4
2 files changed, 10 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':
diff --git a/releasenotes/notes/ironic-microversion-ba5b0f36f11196a6.yaml b/releasenotes/notes/ironic-microversion-ba5b0f36f11196a6.yaml
new file mode 100644
index 0000000..62e3627
--- /dev/null
+++ b/releasenotes/notes/ironic-microversion-ba5b0f36f11196a6.yaml
@@ -0,0 +1,4 @@
+---
+features:
+ - Add support for passing Ironic microversion to the ironicclient
+ constructor in get_legacy_client.