Project

General

Profile

Bug #1926

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

Added by francisco j valero almost 10 years ago. Updated over 9 years ago.

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

History

#1 Updated by Ohad Levy almost 10 years ago

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

#2 Updated by Greg Sutcliffe almost 10 years ago

  • Target version changed from 1.1 to Bug scrub

#3 Updated by Amos Benari over 9 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.

Also available in: Atom PDF