Actions
Bug #1262
closedNode.rb fails when host has no owner
Description
When authentication is activated, node.rb fails for hosts that have no owner specified.
Production log contains:
Processing HostsController#externalNodes to yml (for 192.168.x.y at 2011-10-26 14:36:36) [GET]
Parameters: {"name"=>"host.example.com", "format"=>"yml", "action"=>"externalNodes", "controller"=>"hosts"}
Failed to generate external nodes for host.example.com with undefined method `name' for nil:NilClass
Completed in 12ms (View: 0, DB: 8) | 412 Precondition Failed [http://foreman/node/host.example.com?format=yml]
When host is updated to have an owner, problem disappears
happens with 0.4rc3
Actions