Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1730400 - `hammer puppet-class info --environment ...` complains: Error: Unrecognised option '--environment'.
Summary: `hammer puppet-class info --environment ...` complains: Error: Unrecognised o...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: 6.6.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.6.0
Assignee: Oleh Fedorenko
QA Contact: vijsingh
URL:
Whiteboard:
Depends On:
Blocks: 1710260
TreeView+ depends on / blocked
 
Reported: 2019-07-16 15:27 UTC by Jan Hutař
Modified: 2019-10-22 19:52 UTC (History)
10 users (show)

Fixed In Version: tfm-rubygem-hammer_cli_foreman-0.17.0.5-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-10-22 19:52:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 27323 0 'Normal' 'Closed' '`hammer puppet-class info --environment ...` complains: Error: Unrecognised option ''--environment''.' 2019-11-12 12:42:07 UTC

Description Jan Hutař 2019-07-16 15:27:36 UTC
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
[...]

Comment 3 Oleh Fedorenko 2019-07-17 15:21:58 UTC
Created redmine issue https://projects.theforeman.org/issues/27323 from this bug

Comment 4 Bryan Kearney 2019-07-18 16:02:51 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/27323 has been resolved.

Comment 6 vijsingh 2019-08-19 09:13:02 UTC
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
_____________________________________________________________________________________________________

Comment 7 Bryan Kearney 2019-10-22 19:52:05 UTC
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


Note You need to log in before you can comment on or make changes to this bug.