-
Bug
-
Resolution: Not a Bug
-
Normal
-
None
-
Low
-
False
-
False
-
** Note that this is a public ticket, please refrain from adding any sensitive data. **
Description of Problem
Trying to retrieve all hosts in the inventory with a filter on the operating_system value located in system_profile. For some reason, the filter does not work when specifying operating_system with version.
I'm using the following filter:
{"system_profile": {"operating_system": {"major": "8"}}}
It gives the following error:
{ "detail": "Incomplete path provided: {'major': '8'} ", "status": 400, "title": "Validation Error", "type": "about:blank" }
How reproducible
Always
Steps to Reproduce
- Go to https://console.redhat.com/docs/api/inventory/v1#operations-hosts-api\.host\.get_host_list
- In the filter object, use following:
{"system_profile": {"operating_system": {"major": "8"}}} or {"system_profile": {"operating_system": {"major": 8, "minor": 8, "name": "RHEL"}}}
Actual Behavior
It is giving error "Incomplete path provided".
Expected Behavior
It should filter the hosts depending on the operating system version.