Hide Forgot
Description of problem: hammer complains about missing --environment-ids parameters whereas the help states that --environments is also valid. Version-Release number of selected component (if applicable): 6.1.7 $ rpm -qa | grep hammer rubygem-hammer_cli_foreman_tasks-0.0.3.5-1.el7sat.noarch rubygem-hammer_cli_foreman_docker-0.0.3.10-1.el7sat.noarch rubygem-hammer_cli_foreman_bootdisk-0.1.2.7-1.el7sat.noarch rubygem-hammer_cli_katello-0.0.7.21-1.el7sat.noarch rubygem-hammer_cli-0.1.4.13-1.el7sat.noarch rubygem-hammer_cli_gutterball-0.0.1.3-1.el7sat.noarch rubygem-hammer_cli_foreman_discovery-0.0.1.10-1.el7sat.noarch rubygem-hammer_cli_import-0.10.20-1.el7sat.noarch rubygem-hammer_cli_foreman-0.1.4.15-1.el7sat.noarch How reproducible: always Steps to Reproduce: 1. $ hammer content-view version incremental-update --content-view-version "xxx" --errata-ids yyy --environments lce-dev An error occurred incrementally updating the content view: Error: option '--environment-ids' is required See: 'hammer content-view version incremental-update --help' 2.$ hammer content-view version incremental-update --help [...] --environment-ids ENVIRONMENTS list of environment IDs to update the content view version in Comma separated list of values. --environments ENVIRONMENT_NAMES Comma separated list of values. [...] Actual results: --environments isn't recognized though it should be valid. Expected results: both --environments and --environment-ids can be similarly used. Additional info:
This is going to be fixed as part of https://bugzilla.redhat.com/show_bug.cgi?id=1315278
Moving to POST for QA to test, no change needed for this bz
Verified in Satellite 6.2 Beta Snap 16. you can use the lifecycle-environments flag to specify the environment you want to target. [root@rhsm-qe-1 ~]# hammer content-view version incremental-update --content-view-version-id 2 --errata-ids RHSA-2016:1139 --lifecycle-environments Dev --organization-id 1 [....................................................................................................................................................................................] [100%] Content View: rhel7 capsule version 1.1 Added Content: Errata: RHSA-2016:1139 Packages: squid-3.3.8-26.el7_2.3.x86_64
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-2016:1501