Bug #12095
closedSmart Class Parameters mangle erb interpolated variables
Description
This occurs on the class level. Hosts, hostgroups and nested hostgroups appear to have the correct behavior. This occurs in the nightly (October 7, 2015) installed with a default foreman-installer setup, as well as in version 1.9.2.
When adding a parameter override of type array, yaml or hash that has an element which is an interpolated erb value, the first time one clicks submit, the values appear correctly.
Open the class again and you will see that the parameter overrides have been mangled. Click submit, and the yaml values for the host will show true for arrays and hashs, and will be prefixed by multiple instances of the following (and it gets longer each submission):
! '--- ! "---\r\n
Files
Updated by Anonymous about 9 years ago
- File original_node_yaml.png original_node_yaml.png added
- File original_yaml.png original_yaml.png added
Looks like I missed two screenshots.
Updated by Dominic Cleal about 9 years ago
Appears superficially similar to #11375, but that was a host common -> lookup values association issue, so it isn't applicable to this bug which can be reproduced entirely from the Puppet class edit form.
Updated by Dominic Cleal about 9 years ago
- Has duplicate Bug #12117: The web-interface dose not handle smart class parameters that contain templates correctly added
Updated by Dominic Cleal about 9 years ago
- Status changed from New to Assigned
- Assignee set to Dominic Cleal
Updated by The Foreman Bot about 9 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/2806 added
- Pull request deleted (
)
Updated by Dominic Cleal about 9 years ago
- Related to Bug #11375: Smart class parameters turn YAML to string when using a multi line yaml added
Updated by Dominic Cleal about 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 8893c3bc8d339d87ba0edb88f27a5c10d790a9b8.
Updated by Dominic Cleal about 9 years ago
- Translation missing: en.field_release set to 104