Consider using service proxies for info modules
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ansible-collections-openstack |
New
|
Undecided
|
Unassigned |
Bug Description
Currently, the Openstack.Cloud collection uses the connection.search_* functions to retreive data in the *_info modules.
These functions are not only currently bugged and don't apply filters correctly (see https:/
https:/
For example, when retrieving projects, replace conn.search_
https:/
These service proxies are already used when changing or creating projects (or any type of resource for that matter):
https:/
These search_* cloud layer functions use the proxy layer under the hood anyways, so why not make all API calls uniform and avoid deprecated functions?
The contributor guide also lists proxy methods as preferred over the cloud layer.
The cloud collection version 2.X also requires the latest version of the openstacksdk (>=1.0), so it makes sense IMO to update to the more modern proxy interface.
This is to incite some discussion, I am happy to provide patches should this change be desired.