Project

General

Profile

Actions

Bug #10793

closed

Editing location or organization fails with NameError uninitialized constant ConfigTemplate

Added by Marek Hulán almost 9 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Organizations and Locations
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Originally reported in #10778, we didn't migrate ignore_types of taxonomies to new class name so users see following error and trace when they try to edit Location or Organization that was set to ignore ConfigTemplate (Provisioning template)

NameError uninitialized constant ConfigTemplate

/opt/rh/ruby193/root/usr/share/gems/gems/foreman_hooks-0.3.7/lib/foreman_hooks.rb:83:in `load_missing_constant_with_hooks'
/opt/rh/ruby193/root/usr/share/gems/gems/rake-0.9.2.2/lib/rake/ext/module.rb:36:in `const_missing'
/usr/share/foreman/config/initializers/deprecations.rb:3:in `const_missing'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/inflector/methods.rb:230:in `block in constantize'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/inflector/methods.rb:229:in `each'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/inflector/methods.rb:229:in `constantize'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/core_ext/string/inflections.rb:54:in `constantize'
/usr/share/foreman/app/services/tax_host.rb:34:in `block in selected_ids'
/usr/share/foreman/app/services/tax_host.rb:33:in `each'
/usr/share/foreman/app/services/tax_host.rb:33:in `selected_ids'
/usr/share/foreman/app/services/tax_host.rb:61:in `selected_or_inherited_ids'
/usr/share/foreman/app/services/tax_host.rb:77:in `block in need_to_be_selected_ids'
/usr/share/foreman/app/services/tax_host.rb:73:in `map'
/usr/share/foreman/app/services/tax_host.rb:73:in `need_to_be_selected_ids'
/usr/share/foreman/app/services/tax_host.rb:129:in `check_for_orphans'
/usr/share/foreman/app/models/taxonomy.rb:168:in `check_for_orphans'

Related issues 1 (0 open1 closed)

Related to Foreman - Feature #7096: Partition Tables should just be a kind of Provisioning TemplatesClosedMarek Hulán08/14/2014Actions
Actions #1

Updated by The Foreman Bot almost 9 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/2453 added
  • Pull request deleted ()
Actions #2

Updated by Marek Hulán almost 9 years ago

  • Related to Feature #7096: Partition Tables should just be a kind of Provisioning Templates added
Actions #3

Updated by Marek Hulán almost 9 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF