Feature #1211
closedallow both id and fqdn as an id
Description
When interacting with the rest api, some resources return the host id. Sometimes, it is useful to retrieve the host information from that particular id.
Here is the patch (provided by Ohad at the #theforeman irc channel)
https://github.com/gustavosoares/foreman/commit/5bafd62b2467aaf5389538fcda937639bdde5750
Updated by Ohad Levy about 13 years ago
- Category set to API
- Assignee set to Ohad Levy
- Target version set to 0.4
Updated by Ohad Levy about 13 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Applied in changeset d1d29d085b1ab671d0358005b27724a3094bc907.
Updated by Gustavo Soares about 13 years ago
Ohad,
After running some more tests I noticed that the external nodes script was (always) receiving NOT FOUND.
Error retrieving node abc.globoi.com: Net::HTTPNotFound
Should the filter find_by_name be applied to the action externalNodes in app/controller/hosts_controller.rb?
Updated by Ohad Levy about 13 years ago
Gustavo Soares wrote:
Ohad,
After running some more tests I noticed that the external nodes script was (always) receiving NOT FOUND.
Error retrieving node abc.globoi.com: Net::HTTPNotFound
Should the filter find_by_name be applied to the action externalNodes in app/controller/hosts_controller.rb?
yes, I've noticed it already, and afair it has been fixed already.
there was a ui related issue too (when clicking on the yaml link) and that should be already solved in the newui branch.