Actions
Bug #6258
closedhammer activation-key update fails for all scenarios
Description
Steps to Reproduce:
1. Create Activation key
All hammer activation-key update scenarios are blocked with this same issue. Example:
1. Create Activation key
- hammer activation-key create --organization-id=1 --name='ak' --content-view='cv1'
Activation key created
- 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:- hammer activation-key update --name='ak' --organization-id=1 --new-name='ak123'
Could not update the activation key:
Error: Missing options to search environment
- 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
All hammer activation-key update scenarios are blocked with this same issue. Example:
- 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
Updated by dustin tsang over 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 == ''.
Updated by dustin tsang over 10 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Applied in changeset katello|commit:064ab68c5cd5c53298e9d9692e34c05b105d25f3.
Updated by Eric Helms over 10 years ago
- Category set to Hammer
- Assignee set to dustin tsang
- Target version set to 48
- Triaged changed from No to Yes
Updated by Eric Helms over 10 years ago
- Translation missing: en.field_release set to 13
Actions