Project

General

Profile

Actions

Bug #6258

closed

hammer activation-key update fails for all scenarios

Added by dustin tsang almost 10 years ago. Updated over 5 years ago.

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

Description

Steps to Reproduce:
1. Create Activation key
  1. hammer activation-key create --organization-id=1 --name='ak' --content-view='cv1'
    Activation key created
2. Check Activation key info
  1. hammer activation-key info --name='ak' --organization-id=1
    Name: ak
    ID: 6
    Description:
    Lifecycle Environment:
    Content View: cv1
    Host Collections:

3. Try updating Activation key:

Scenario 1:
  1. hammer activation-key update --name='ak' --organization-id=1 --new-name='ak123'
    Could not update the activation key:
    Error: Missing options to search environment
Scenario 2:
  1. hammer activation-key update --name='ak' --organization-id=1 --new-name='ak123' --environment=''
    Could not update the activation key:
    Error: environment found more than once

Actual results:
Activation key update errored

Expected results:
Activation key update works successfully

Additional info:
All hammer activation-key update scenarios are blocked with this same issue. Example:
  1. hammer activation-key update --name='ak' --organization-id=1 --environment='DEV' --content-view='cv1'
    Could not update the activation key:
    Error: environment found more than once
Actions #1

Updated by dustin tsang almost 10 years ago

issue is that update action's apipie documentation requires 'environment_id'.
environment_id should not be required since create allow the creation of content_view without an environment.

Changing the apipie documentation so that environment_id is option should solve Scenario 1.
Scenario 2 not be able to be solved since, that cause would be searching for a environment where name == ''.

Actions #2

Updated by dustin tsang almost 10 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Applied in changeset katello|commit:064ab68c5cd5c53298e9d9692e34c05b105d25f3.

Actions #3

Updated by Eric Helms almost 10 years ago

  • Category set to Hammer
  • Assignee set to dustin tsang
  • Target version set to 48
  • Triaged changed from No to Yes
Actions #4

Updated by Eric Helms over 9 years ago

  • translation missing: en.field_release set to 13
Actions

Also available in: Atom PDF