Bug 1882469
Summary: | hammer content-view remove -h doesn't contain option --lifecycle-environments | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | tstrych |
Component: | Content Views | Assignee: | satellite6-bugs <satellite6-bugs> |
Status: | CLOSED NEXTRELEASE | QA Contact: | Lai <ltran> |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.8.0 | CC: | apatel, chrobert, kgaikwad, ofedoren, rabajaj |
Target Milestone: | Unspecified | Keywords: | EasyFix, Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-06-07 14:50:11 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
tstrych
2020-09-24 16:14:38 UTC
Hello, could you please elaborate what the expected outcomes are? As I can see, API docs mention that for PUT /katello/api/content_views/:id/remove environment params are optional, so they are in hammer. Firstly, sorry, now when I read this I did not understand from this BZ what do I want from you. So I will explain it here once more, hopefully better.
hammer content-view remove -h
>> displays:
<omitted>
--environment-ids ENVIRONMENT_IDS (--environment-ids is deprecated: Use --lifecycle-environment-ids instead)
Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
JSON is acceptable and preferred way for complex parameters
--environments ENVIRONMENT_NAMES (--environments is deprecated: Use --lifecycle-environments instead)
Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
<omitted>
--key-environment-id KEY_ENVIRONMENT_ID Environment to reassign orphaned activation keys to
--lifecycle-environment-ids LIFECYCLE_ENVIRONMENT_IDS Environment ids to remove
Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
JSON is acceptable and preferred way for complex parameters
--name NAME Content view name to search by
<omitted>
As you can see there is a mention of --lifecycle-environment-ids and --lifecycle-environments
But --lifecycle-environment-ids is mentioned and --lifecycle-environments is not.
Expected result.
--lifecycle-environments should me mentioned between the options
As you can see there is a mention of --lifecycle-environment-ids and --lifecycle-environments in description of --environments-ids and --environments. But option --lifecycle-environment-ids is mentioned and --lifecycle-environments is not. Thanks for the better explanation! Now I see the problem. This was already fixed in upstream, see https://github.com/Katello/katello/pull/9122 https://github.com/Katello/hammer-cli-katello/pull/778 Unfortunatelly, I'm not sure if we can backport this. Although, I'd rather ask Katello guys, maybe it's not so difficult. What do you think, Chris? Looks like this is fixed in Master: [vagrant@dhcp-8-29-182 ~]$ hammer content-view remove -h Warning: An error occured while loading module hammer_cli_foreman_remote_execution. Usage: hammer content-view remove [OPTIONS] Options: --async Do not wait for the task --content-view-version[s|-ids] LIST Content view version versions/idss to be deleted --destroy-content-view BOOLEAN Delete the content view with all the versions and environments --environment[s|-ids] LIST (--environment-ids is deprecated: Use --lifecycle-environment-ids instead) (Deprecated: Use --lifecycle-environment[s|-ids] instead) --id NUMBER Content view id --key-content-view-id NUMBER Content view to reassign orphaned activation keys to --key-environment-id NUMBER Environment to reassign orphaned activation keys to --lifecycle-environment-ids LIST Environment idss to be removed --name VALUE Content view name to search by --organization[-id|-label] VALUE Organization name/label/id to search by --system-content-view-id NUMBER Content view to reassign orphaned systems to --system-environment-id NUMBER Environment to reassign orphaned systems to -h, --help Print help This is fixed in 6.11, marking as CLOSED NEXTRELEASE |