mirror of
https://opendev.org/openstack/ansible-collections-openstack.git
synced 2026-03-26 21:43:02 +00:00
Alongside OpenStack SDK 1.0.0 we will release a new collection version 2.0.0 which is compatible to OpenStack SDK 1.x.x series only. Code in branch stable/1.0.0 will remain compatible to OpenStack SDK 0.x.x series only. At Ansible OpenStack modules PTG on 2022-04-07 it was decided to raise an error if one is using a incompatible releases of the OpenStack SDK with our collection. We decided against showing warnings only because they can be missed easily and functionality will be broken but probably hardly detectable when using the wrong SDK. This patch implements the code to raise errors when users are trying to use our collection with an incompatible SDK release, e.g. use code from our stable/1.0.0 branch with a OpenStack SDK 1.x.x release. It does not yet change the minimum and maximum required SDK versions because OpenStack SDK 1.0.0 has not yet been released to PyPI and SDK's master branch still does not return a 1.x.x version number. Change-Id: I1052d21cf8f108dbc99619cd4c4072488645b855