Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1357864

Summary: Hammer : The puppet default field for sc-param matcher is not displayed
Product: Red Hat Satellite Reporter: Jitendra Yejare <jyejare>
Component: HammerAssignee: orabin
Status: CLOSED ERRATA QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2.0CC: bbuckingham, bkearney, oshtaier
Target Milestone: UnspecifiedKeywords: 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: 2018-02-21 16:54:17 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 Jitendra Yejare 2016-07-19 12:31:07 UTC
Description of problem:
Hammer is not displaying the puppet default is used for sc-param's matcher or not in 'sc-param info'.

Version-Release number of selected component (if applicable):
Sat 6.2 Snap 20.2 GA

How reproducible:
Always

Steps to Reproduce:
1. Create a matcher for sc-param.
2. Enter some 'value' for matcher and also check puppet default for that matcher.
3. Submit the sc-param.
4. Hammer info that sc-param and its matchers.

Actual results:
It doesnt displays any field for matcher showing whether its using puppet default or not.

Expected results:
hammer info should display both the given value as well as field for puppet default showing true or false.

Additional info:

Comment 2 orabin 2016-08-11 09:47:33 UTC
Created redmine issue http://projects.theforeman.org/issues/16059 from this bug

Comment 3 Bryan Kearney 2016-08-11 10:16:27 UTC
Upstream bug assigned to orabin

Comment 4 Bryan Kearney 2016-08-11 10:16:30 UTC
Upstream bug assigned to orabin

Comment 5 Bryan Kearney 2016-08-18 10:17:04 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/16059 has been closed

Comment 6 orabin 2016-10-05 15:23:36 UTC
*** Bug 1352502 has been marked as a duplicate of this bug. ***

Comment 8 Stanislav Tkachenko 2016-11-02 01:25:59 UTC
Verified on Satellite 6.3.0 Snap 5.0, hammer_cli_foreman 0.8.0

> # hammer -v -u admin -p changeme sc-param info --puppet-class="cli_test_classparameters" --id="3183" | grep default
> Use puppet default: no

> # hammer -v -u admin -p changeme --output=csv sc-param update --override="1" --use-puppet-default="1" --id="3183"               
> Parameter updated,3183
> # hammer -v -u admin -p changeme sc-param info --puppet-class="cli_test_classparameters" --id="3183" | grep default
> Use puppet default: yes

> # hammer -v -u admin -p changeme --output=csv sc-param update --use-puppet-default="0" --id="3183"
> Parameter updated,3183
> # hammer -v -u admin -p changeme sc-param info --puppet-class="cli_test_classparameters" --id="3183" | grep default
> Use puppet default: no

Comment 9 Satellite Program 2018-02-21 16:54:17 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-2018:0336