Hide Forgot
Description of problem: `hammer puppet-class info --environment ...` complains: Error: Unrecognised option '--environment'. Version-Release number of selected component (if applicable): tfm-rubygem-hammer_cli-0.17.1-2.el7sat.noarch tfm-rubygem-hammer_cli_foreman-0.17.0.3-1.el7sat.noarch tfm-rubygem-hammer_cli_katello-0.18.0.2-1.el7sat.noarch satellite-6.6.0-5.beta.el7sat.noarch How reproducible: always Steps to Reproduce: 1. # hammer puppet-class info --puppet-environment production --name access_insights_client 2. # hammer puppet-class info --environment production --name access_insights_client Actual results: First command works fine, but: [root@satellite ~]# hammer puppet-class info --environment production --name access_insights_client Error: Unrecognised option '--environment'. See: 'hammer puppet-class info --help'. Expected results: [root@satellite ~]# hammer puppet-class info --environment production --name access_insights_client Id: 2 Name: access_insights_client [...]
Created redmine issue https://projects.theforeman.org/issues/27323 from this bug
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/27323 has been resolved.
ON_QA Verified: @Satellite 6.6.0 snap 16.0 Steps/Observation: _____________________________________________________________________________________________________ [root@qe-sat6-bm1 ~]# hammer puppet-class info --environment production --name access_insights_client Warning: Option --environment is deprecated. Use --puppet-environment instead Id: 1 Name: access_insights_client Smart variables: Smart class parameters: authmethod auto_config auto_update base_url cert_verify gpg log_level obfuscate obfuscate_hostname password proxy upload_schedule username Hostgroups: Environments: production [root@qe-sat6-bm1 ~]# hammer puppet-class info --puppet-environment production --name access_insights_client Id: 1 Name: access_insights_client Smart variables: Smart class parameters: authmethod auto_config auto_update base_url cert_verify gpg log_level obfuscate obfuscate_hostname password proxy upload_schedule username Hostgroups: Environments: production _____________________________________________________________________________________________________
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/RHSA-2019:3172