Actions
Bug #10816
closedAPI v2 does not return facts
Status:
Duplicate
Priority:
High
Assignee:
-
Category:
-
Target version:
-
Description
After upgrading to API v2 we have the following problem: the API does not return facts anymore. The v1 API calls are still working, anyway.
Example v2 query:
curl -sk "https://admin:password@foreman/api/fact_values?search=host+%3D+node58.dev+and+fact+%3D+state"
{
"total": 0,
"subtotal": 0,
"page": 1,
"per_page": 100,
"search": "host = node58.dev and fact = state",
"sort": {
"by": null,
"order": null
},
"results": {}
}
Example v1 query:
curl -sk "https://admin:password@foreman/api/fact_values?search=host+%3D+node58.dev+and+fact+%3D+state"
{"node58.dev":{"state":"selected"}}
No error in production log whatsoever.
Please advise
Actions