Bug #9318
closeddoes not resolve a nested host group to id when updating a host
Description
AFAIK, the foreman hammer cli tries and resolves the host group name to an id before trying to run the update command. This doesn't seem to be happening correctly when using nested host groups.
It appears that the search functionality does not work with nested host groups when using the Web UI. In order to make search work I have to search by label.
https://foreman.corp?utf8=%E2%9C%93&search=label+%3D+oracle%2Ftomcat%2Fone
Given
hammer host update --hostgroup oracle/tomcat/one --name hostname_hidden.com
Started GET "/api/hostgroups?search=name+%3D+%22oracle%2Ftomcat%2Fone%22" for 10.194.168.218 at 2015-02-10 17:33:32 -0800
Processing by Api::V2::HostgroupsController#index as JSON
Parameters: {"search"=>"name = \"oracle/tomcat/one\"", "apiv"=>"v2", "hostgroup"=>{}}
Authorized user go_agent(Go Agent)
Rendered api/v2/hostgroups/index.json.rabl within api/v2/layouts/index_layout (1.8ms)
Completed 200 OK in 143ms (Views: 4.2ms | ActiveRecord: 8.2ms)