Actions
Bug #25008
closedForeman API host facts returns facts two times
Status:
Resolved
Priority:
High
Assignee:
-
Category:
API
Target version:
-
Description
The request:
https://{{foreman-url}}/api/v2/hosts/{{host-url}}/facts?per_page=3
Returns the facts two times:
{
"total": 527,
"subtotal": 4,
"page": 1,
"per_page": 3,
"search": " host = {{host-url}}",
"sort": {
"by": null,
"order": null
},
"results": {
"{{host-url}}": {
"augeas": null,
"disks": null,
"dhcp_servers": null
},
"augeas": null,
"disks": null,
"dhcp_servers": null
}
}
This is in collision with Ansible foreman plugin to read inventory:
https://github.com/theforeman/foreman_ansible_inventory/blob/master/foreman_ansible_inventory.py
line 251-255 - one result is expected.
Actions