Project

General

Profile

Actions

Bug #6258

closed

hammer activation-key update fails for all scenarios

Added by dustin tsang almost 10 years ago. Updated almost 6 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

Also available in: Atom PDF