Bug #12151
Import puppet classes in production environment throws error undefined method `values' for []:Array
Description
On listing of puppet environments url(https://foreman-url/environments) importing from other environment into production throws error
undefined method `values' for []:Array
foreman/app/services/puppet_class_importer.rb:78:in `new_classes_for
Related issues
Associated revisions
fixes #12151 - return empty classes hash when missing environment
(cherry picked from commit 0c752b5fd10ddf5221465efc63317dfd338d27dd)
fixes #12151 - return empty classes hash when missing environment
(cherry picked from commit 0c752b5fd10ddf5221465efc63317dfd338d27dd)
History
#1
Updated by The Foreman Bot over 7 years ago
- Status changed from New to Ready For Testing
#2
Updated by Dominic Cleal over 7 years ago
- Has duplicate Bug #12205: Importing Puppet Modules fail added
#3
Updated by Dominic Cleal over 7 years ago
- Category set to Puppet integration
- Legacy Backlogs Release (now unused) set to 91
#4
Updated by Dominic Cleal over 7 years ago
- Assignee set to Ranjan Kumar
#5
Updated by Ranjan Kumar over 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 0c752b5fd10ddf5221465efc63317dfd338d27dd.
fixes #12151 - return empty classes hash when missing environment