Project

General

Profile

Actions

Bug #38170

open

hammer activation-key create false positive when passing in only --content-view

Added by Jeremy Lenz 4 days ago. Updated 3 days ago.

Status:
Ready For Testing
Priority:
Normal
Assignee:
Category:
Activation Key
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Description of problem:

When you try to create AK using hammer CLI and you provide just CV to the creation command the AK is created without the error.

hammer activation-key create --name="testAK_1" --organization="testORG" --content-view="testCV"
Activation key created.

AK that is created by this does not have CV assigned which is correct behavior but the command should fail.

The same error should come up as when you try to create AK with just LCE provided to the command.

hammer activation-key create --name="testAK_1" --organization="testORG" --lifecycle-environment="testLCE"
Could not create the activation key: Environment ID and content view ID must be provided together

Actions

Also available in: Atom PDF