Actions
Bug #12385
closedcapsule content - unfriendly message when removing an environment from the capsule
Description
If a user attempts to remove a lifecycle environment from a capsule, they will be presented with an unfriendly message, if that environment is not currently associated with the capsule.
The following is an example using the CLI:
hammer> capsule content remove-lifecycle-environment --organization-id 1 --id 10 --environment-id 3
Could not remove the lifecycle environment from the capsule:
Couldn't find Katello::KTEnvironment with id=3 [WHERE "katello_capsule_lifecycle_environments"."capsule_id" = 10]
Actions