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
Updated by Ohad Levy about 13 years ago
- Category set to External Nodes
- 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 3fb5cb34a0bbf5d170125b6da16d30afbf5ef9d0.
Actions