Project

General

Profile

Actions

Bug #1262

closed

Node.rb fails when host has no owner

Added by Tim Speetjens over 12 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
External Nodes
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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

Also available in: Atom PDF