Project

General

Profile

Actions

Bug #1926

closed

Foreman fails when click in "import new puppet classes and environments"

Added by francisco j valero over 11 years ago. Updated over 11 years ago.

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

Description

can't convert ActiveRecord::Errors into Array
If you feel this is an error with Foreman itself, please open a new issue with Foreman ticketing system, You would probably need to attach the Full trace and relevant log entries.

TypeError
can't convert ActiveRecord::Errors into Array
/usr/share/foreman/app/models/environment.rb:126:in `+'
/usr/share/foreman/app/models/environment.rb:126:in `obsolete_and_new'
/usr/share/foreman/app/models/environment.rb:123:in `each'
/usr/share/foreman/app/models/environment.rb:123:in `obsolete_and_new'
/usr/share/foreman/app/models/environment.rb:114:in `each'
/usr/share/foreman/app/models/environment.rb:114:in `obsolete_and_new'
/usr/share/foreman/lib/foreman/controller/environments.rb:19:in `obsolete_and_new'

My class works fine whitout ENC

Actions #1

Updated by Ohad Levy over 11 years ago

  • Category set to Importers
  • Assignee set to Amos Benari
  • Priority changed from Urgent to Normal
  • Target version set to 1.1
Actions #2

Updated by Greg Sutcliffe over 11 years ago

  • Target version changed from 1.1 to Bug scrub
Actions #3

Updated by Amos Benari over 11 years ago

  • Status changed from New to Closed

This bug is in the old code of of import.
Trace show error in line 126, we now have 55 lines in the Environment class.

Actions

Also available in: Atom PDF