Bug #12151

Import puppet classes in production environment throws error undefined method `values' for []:Array

Added by Ranjan Kumar over 2 years ago. Updated over 2 years ago.

Status:Closed
Priority:Normal
Assigned To:Ranjan Kumar
Category:Puppet integration
Target version:-
Difficulty: Bugzilla link:
Found in release: Pull request:https://github.com/theforeman/foreman/pull/2815
Story points-
Velocity based estimate-
Release1.9.3Release relationshipAuto

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

Duplicated by Foreman - Bug #12205: Importing Puppet Modules fail Duplicate 10/18/2015

Associated revisions

Revision 0c752b5f
Added by Ranjan Kumar over 2 years ago

fixes #12151 - return empty classes hash when missing environment

Revision f622c89d
Added by Ranjan Kumar about 2 years ago

fixes #12151 - return empty classes hash when missing environment

(cherry picked from commit 0c752b5fd10ddf5221465efc63317dfd338d27dd)

Revision ab075a5b
Added by Ranjan Kumar about 2 years ago

fixes #12151 - return empty classes hash when missing environment

(cherry picked from commit 0c752b5fd10ddf5221465efc63317dfd338d27dd)

History

#1 Updated by The Foreman Bot over 2 years ago

  • Status changed from New to Ready For Testing

#2 Updated by Dominic Cleal over 2 years ago

  • Duplicated by Bug #12205: Importing Puppet Modules fail added

#3 Updated by Dominic Cleal over 2 years ago

  • Category set to Puppet integration
  • Release set to 1.9.3

#4 Updated by Dominic Cleal over 2 years ago

  • Assigned To set to Ranjan Kumar

#5 Updated by Ranjan Kumar over 2 years ago

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

Also available in: Atom PDF