Jira (PUP-8704) resource.rb: to_hierayaml does not escape the title
<<< text/html; charset="UTF-8": Unrecognized >>>
Jira (PUP-8704) resource.rb: to_hierayaml does not escape the title
Title: Message Title Josh Cooper updated an issue Puppet / PUP-8704 resource.rb: to_hierayaml does not escape the title Change By: Josh Cooper Team: Coremunity Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-8704) resource.rb: to_hierayaml does not escape the title
Title: Message Title David Schmitt created an issue Puppet / PUP-8704 resource.rb: to_hierayaml does not escape the title Issue Type: Bug Assignee: Unassigned Created: 2018/05/09 8:26 AM Priority: Minor Reporter: David Schmitt Puppet Version: Anything since 4.0.0-rc1 Puppet Server Version: n/a OS Name/Version: n/a In code inspection we found that to_hierayaml does not properly escape the resource's title in https://github.com/puppetlabs/puppet/blob/c99148fc86bfb7da15947e9f70aab2a3b55f941b/lib/puppet/resource.rb#L429 Desired Behavior: puppet resource --to_yaml exec "/bin/echo foo: bar" creates valid YAML output. Actual Behavior: puppet resource --to_yaml exec "/bin/echo foo: bar" creates invalid YAML output: david@davids:~/git/puppet-resource_api$ puppet resource --to_yaml exec "/bin/echo foo: bar" exec: /bin/echo foo: bar: returns: 'notrun' david@davids:~/git/puppet-resource_api$ puppet resource --to_yaml exec "/bin/echo foo: bar" | ruby -ryaml -e 'puts YAML.parse(STDIN).inspect'