Description of problem: You cannot update a content-view filter's description using hammer. Version-Release number of selected component (if applicable): All up to 6.5 How reproducible: %100 Steps to Reproduce: 1. NOT IN HAMMER 2. 3. Actual results: NA Expected results: Not implemented Additional info: ou cannot update a content-view filter's description using hammer. # hammer content-view filter update --help Usage: hammer content-view filter update [OPTIONS] Options: --content-view CONTENT_VIEW_NAME Content view name to search by --content-view-id CONTENT_VIEW_ID Content view numeric identifier --id ID Filter identifier --inclusion INCLUSION Specifies if content should be included or excluded, default: Inclusion=false One of true/false, yes/no, 1/0. --name NAME Name to search by --new-name NEW_NAME New name for the filter --organization ORGANIZATION_NAME Organization name to search by --organization-id ORGANIZATION_ID Organization ID to search by --organization-label ORGANIZATION_LABEL Organization label to search by --original-packages ORIGINAL_PACKAGES Add all packages without errata to the included/excluded list. (package Filter only) One of true/false, yes/no, 1/0. --repositories REPOSITORY_NAMES Comma separated list of values. Values containing comma should be quoted or escaped with backslash --repository-ids REPOSITORY_IDS List of repository ids Comma separated list of values. Values containing comma should be quoted or escaped with backslash -h, --help Print help One can update the name using the --new-name argument but there is no way to update the description field. You can update the description using the gui. Mike McCune says to open a BZ on this. preposed option -nd || --new-description NEW_desc New desc for the filter or some such option , as this is in the gui to change not in hammer Mike McCune, 2:07pm pst 6/17/2019 yeah, file a bz need a --description flag see private bz for better formating
if -nd does not meet may RH should have ---nd as I do not know if that short hand would be allowed ?
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/27213 has been resolved.
VERIFIED on sat6.7.0 snap#10 ``` # hammer content-view filter create --content-view-id 1 --name foo --description bar --type rpm Filter created. [root@dhcp-3-155 ~]# hammer content-view filter list --content-view-id 1 ----------|------|-------------|------|---------- FILTER ID | NAME | DESCRIPTION | TYPE | INCLUSION ----------|------|-------------|------|---------- 1 | foo | bar | rpm | false ----------|------|-------------|------|---------- [root@dhcp-3-155 ~]# [root@dhcp-3-155 ~]# [root@dhcp-3-155 ~]# [root@dhcp-3-155 ~]# hammer content-view filter update --content-view-id 1 --name foo --description bar2 Filter updated. [root@dhcp-3-155 ~]# hammer content-view filter list --content-view-id 1 ----------|------|-------------|------|---------- FILTER ID | NAME | DESCRIPTION | TYPE | INCLUSION ----------|------|-------------|------|---------- 1 | foo | bar2 | rpm | false ----------|------|-------------|------|---------- ```
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:1455