Issue #10450 has been updated by Matthew Leather.

Yes one of my templates includes a diff file so the --- was matched.  I got 
around it by indenting the diff.

Maybe in serialize_value() you could yaml encode any value matching /^--- /.  
Doesn't fix for already encoded values but maybe you don't need to.
----------------------------------------
Bug #10450: Puppet::Util::ReferenceSerializer.unserialize_value() incorrectly 
tries to YAML decode a value containing '--- ' at the start of _any_ line 
https://projects.puppetlabs.com/issues/10450

Author: Matthew Leather
Status: Accepted
Priority: Normal
Assignee: 
Category: serialization
Target version: 
Affected Puppet version: 2.6.2
Keywords: yaml
Branch: 


I think YAML applies only when the first line is '--- ' so the re should use \A 
instead of ^

I see it in 2.6.2 but I got a clone of git://github.com/puppetlabs/puppet today 
and reference_serializer.rb still has the problem.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to