Project

General

Profile

Bug #10793

Editing location or organization fails with NameError uninitialized constant ConfigTemplate

Added by Marek Hulán about 5 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Organizations and Locations
Target version:
Difficulty:
Triaged:
Bugzilla link:
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

Related to Foreman - Feature #7096: Partition Tables should just be a kind of Provisioning TemplatesClosed2014-08-14

Associated revisions

Revision 75efc886 (diff)
Added by Marek Hulán about 5 years ago

Fixes #10793 - rename old class name in taxonomy ignore_types

History

#1 Updated by The Foreman Bot about 5 years ago

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

#2 Updated by Marek Hulán about 5 years ago

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

#3 Updated by Marek Hulán about 5 years ago

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

Also available in: Atom PDF