1.9.2 - yaml parameter formatting issue when cloning groups

Upgraded from 1.8.1 to 1.9.2 today and I cloned a hostgroup that has a
bunch of yaml parameters, and after I saved the newly cloned hostgroup, all
of the yaml parameters that it cloned have strange formatting. Ex.

Example yaml firewall parameter before hitting save on the clone hostgroup:

020 accept tcp snmp requests:
action: accept
port: '161'
proto: tcp

After hitting save:

— ! "020 accept tcp snmp requests:\r\n action: accept\r\n port:
'161'\r\n proto:

This happens with any yaml parameter that was being overridden on the
original host group that was cloned.

Any ideas?

Thanks.

Hi Jack,
looks like this bug: Bug #11375: Smart class parameters turn YAML to string when using a multi line yaml - Foreman
it has been fixed and will be available in 1.10.
There are efforts to fix it in 1.9.3, you can follow the discussion in the
issue to see the status.

··· On Sat, Oct 17, 2015 at 1:55 AM, Jack Watroba < jwatroba@improvementdirect.com> wrote:

Upgraded from 1.8.1 to 1.9.2 today and I cloned a hostgroup that has a
bunch of yaml parameters, and after I saved the newly cloned hostgroup, all
of the yaml parameters that it cloned have strange formatting. Ex.

Example yaml firewall parameter before hitting save on the clone hostgroup:

020 accept tcp snmp requests:
action: accept
port: '161’
proto: tcp

After hitting save:

— ! "020 accept tcp snmp requests:\r\n action: accept\r\n port:
‘161’\r\n proto:

This happens with any yaml parameter that was being overridden on the
original host group that was cloned.

Any ideas?

Thanks.


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.