-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Odd id
argument in the hosts.reports_last
method
#87
Comments
The way that Specifically, the You could try doing the same request directly with curl or similar, to see if changing the parameters when calling directly the api changes anything.
So I think that at some point the devs wanted to reuse the code from that You can try asking the foreman devs about it, they are usually very friendly and responsive: Let me know if you can't reproduce the issue when accessing the api directly, that would mean that Thanks! |
Thanks a lot for such a detailed response! I've tried to access Foreman API directly via
So there's only a place for Thanks! |
There is a method of
foreman.client.Foreman()
:hosts.reports_last
.The
help
function output for it states, that the method takes 2 arguments:host_id
andid
, that are both required:Indicating different values in this argument lead to the same results. And also official Foreman API documentation states, that this method takes only 1 parameter -
host_id
: https://theforeman.org/api/1.8/apidoc/v2/reports/last.html. But I can see similar description in that doc and this method here for 'id' parameter. In this case I assume it could incorrectly generated.Foreman version:
1.11.4
python-foreman:
0.4.19
The text was updated successfully, but these errors were encountered: