Project

General

Profile

Bug #1262

Node.rb fails when host has no owner

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

Status:
Closed
Priority:
Normal
Assignee:
Category:
External Nodes
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Team Backlog:
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

Associated revisions

Revision 3fb5cb34 (diff)
Added by Ohad Levy over 7 years ago

fixes #1262 - Node.rb fails when host has no owner

History

#1 Updated by Ohad Levy over 7 years ago

  • Category set to External Nodes
  • Target version set to 0.4

#2 Updated by Ohad Levy over 7 years ago

  • Assignee set to Ohad Levy

#3 Updated by Ohad Levy over 7 years ago

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

Also available in: Atom PDF