Project

General

Profile

Actions

Bug #1262

closed

Node.rb fails when host has no owner

Added by Tim Speetjens about 13 years ago. Updated about 13 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 #1

Updated by Ohad Levy about 13 years ago

  • Category set to External Nodes
  • Target version set to 0.4
Actions #2

Updated by Ohad Levy about 13 years ago

  • Assignee set to Ohad Levy
Actions #3

Updated by Ohad Levy about 13 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF