Project

General

Profile

Actions

Bug #5605

closed

activation-key commands resulting in "has_key?" error

Added by Brad Buckingham over 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Hammer
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

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.

Actions #1

Updated by Brad Buckingham over 10 years ago

  • Assignee set to Brad Buckingham
  • Target version set to 44
  • Triaged changed from No to Yes
Actions #2

Updated by Eric Helms over 10 years ago

  • Status changed from New to Closed
Actions #3

Updated by Brad Buckingham over 10 years ago

  • % Done changed from 0 to 100

This was addressed as part of the following PR:
https://github.com/theforeman/hammer-cli/pull/107

Actions #4

Updated by Eric Helms about 10 years ago

  • Translation missing: en.field_release set to 13
Actions

Also available in: Atom PDF