Bug 1353968
Summary: | Satellite 6: Smart Variables still removing newlines (http://projects.theforeman.org/issues/15534) | |||
---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Calvin Hartwell <chartwel> | |
Component: | Provisioning | Assignee: | Tomer Brisker <tbrisker> | |
Status: | CLOSED ERRATA | QA Contact: | Bruno Rocha <rochacbruno> | |
Severity: | medium | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 6.1.9 | CC: | bbuckingham, bkearney, chartwel, cwelton, inecas, jcallaha, mburgerh, tbrisker, zhunting | |
Target Milestone: | Unspecified | Keywords: | Triaged | |
Target Release: | Unused | |||
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | foreman-1.11.0.72-1 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1426384 (view as bug list) | Environment: | ||
Last Closed: | 2017-05-01 13:53:13 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: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1415680, 1426384 |
Description
Calvin Hartwell
2016-07-08 14:43:24 UTC
Connecting redmine issue http://projects.theforeman.org/issues/15534 from this bug (In reply to Bryan Kearney from comment #1) > Connecting redmine issue http://projects.theforeman.org/issues/15534 from > this bug Thanks! Upstream bug component is Provisioning Moving to POST since upstream bug http://projects.theforeman.org/issues/15534 has been closed Please add verifications steps for this bug to help QE verify Verification steps: 1. Create a smart variable of type string on a puppet class, or use an existing smart parameter. 2. Set default value to something like: " Testing " 3. Add a matcher that overrides the default value with a different value, e.g.: " Overridden " 4. Save and reopen the parameter. 5. Observe that leading and trailing white space has not been removed in neither default value nor override value. Verified in: Results: Work as expected, `content` parameter and `variable` accepting and keeping line breaks and trailing whitespaces [root@cloud-qe-09 ~]# hammer sc-param info --id=22 [Foreman] Password for admin: Id: 22 Parameter: content Default Value: this should work with \n or "\n" also with tabs this is a tab \t should also work. Override: true Puppet class: motd Description: Type: string Hidden Value?: false Required: false Validator: Type: Rule: Override values: Merge overrides: no Merge default value: no Avoid duplicates: no Order: fqdn, hostgroup, os, domain Values: Environments: example_env KT_Default_Organization_Library_puppettest_125 Created at: 2017/04/20 17:14:13 Updated at: 2017/04/20 19:20:48 [root@cloud-qe-09 ~]# hammer smart-variable info --id=23 [Foreman] Password for admin: Id: 23 Name: content Default Value: this should work with \n or "\n" also with tabs this is a tab \t should also work. Type: string Puppet class: motd Description: Hidden Value?: false Validator: Type: Rule: Override values: Merge overrides: no Merge default value: no Avoid duplicates: no Order: fqdn, hostgroup, os, domain Values: Created at: 2017/04/20 19:13:59 Updated at: 2017/04/20 19:21:14 verified in: satellite-6.2.9-4.0.el7sat.noarch Adding verification for comment 13 [root@cloud-qe-09 ~]# hammer smart-variable info --id=23 [Foreman] Password for admin: Id: 23 Name: content Default Value: " Testing " Type: string Puppet class: motd Description: Hidden Value?: false Validator: Type: Rule: Override values: Merge overrides: no Merge default value: no Avoid duplicates: no Order: fqdn, hostgroup, os, domain Values: 1) Id: 1 Match: domain=FQDN.com Value: " Overridden " Created at: 2017/04/20 19:13:59 Updated at: 2017/04/20 19:32:41 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-2017:1191 |