Bug #5605

activation-key commands resulting in "has_key?" error

Added by Brad Buckingham almost 4 years ago. Updated over 3 years ago.

Assigned To:Brad Buckingham
Target version:Sprint 31
Difficulty: Pull request:
Bugzilla link:
Story points-
Velocity based estimate-
ReleaseKatello 2.0Release relationshipAuto


If an activation-key doesn't have an environment or content view assigned, attempting to execute certain commands (e.g. activation-key list, activation-key info) will result in an error to the user.

The error is:
NoMethodError (undefined method `has_key?' for nil:NilClass):

This may be related to the feature that was recently introduced to allow the keys to 'optionally' included env/view. Previously, they were required.


#1 Updated by Brad Buckingham almost 4 years ago

  • Assigned To set to Brad Buckingham
  • Target version set to Sprint 31
  • Triaged changed from No to Yes

#2 Updated by Eric Helms almost 4 years ago

  • Status changed from New to Closed

#3 Updated by Brad Buckingham almost 4 years ago

  • % Done changed from 0 to 100

This was addressed as part of the following PR:

#4 Updated by Eric Helms over 3 years ago

  • Release set to Katello 2.0

Also available in: Atom PDF