Closed jwbernin closed 4 years ago
I think you can pass search: "organization_id={{ org_id }}"
as an workaround.
Bit of background: product
is a Katello object, and those are always scoped to an Org, but foreman_search_facts
currently does not support scoped searches
Adding a search has no effect, I get the same combination of errors.
@jwbernin mind testing the fix in #537, whether it helps your case (or not)?
That fix does indeed fix my use case.
Shall we close this one, or recycle to implement better support for scoping with taxonomy, products, ...?
Closing in favour of #570
SUMMARY
When I try to retrieve a list of Products using foreman_search_facts, it either complains that a required parameter is missing (organization_id), or complains that an unsupported parameter was provided (organization_id).
ISSUE TYPE
ANSIBLE VERSION
KATELLO/FOREMAN VERSION
NAILGUN VERSION
STEPS TO REPRODUCE
OR
EXPECTED RESULTS
One of the two plays would work as expected
ACTUAL RESULTS
First play: fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed to list resource: The following required parameters are missing: organization_id"}
Second play: fatal: [localhost]: FAILED! => {"changed": false, "msg": "Unsupported parameters for (foreman_search_facts) module: organization_id Supported parameters include: password, resource, search, server_url, username, validate_certs"}