Issue #3652 has been updated by Markus Roberts.

I do not see what change could have caused the described problem, in part 
because I am not understanding the intended outcome.  Specifically, I'm not 
getting what "the parser in 0.24 broke the augeas command at the single-quote" 
means.
----------------------------------------
Bug #3652: Quoting incompatible between 0.24 and 0.25
https://projects.puppetlabs.com/issues/3652

Author: Alan Sparks
Status: Needs design decision
Priority: Normal
Assignee: Nigel Kersten
Category: 
Target version: 
Affected Puppet version: 0.25.4
Keywords: 
Branch: 


I hope this is related to bug #3387.  But symptoms are not the same.

For augeus in 0.24.8, paths with single quotes (for filters) required escapes, 
similar to the following:

<pre>
augeas { "ensure /etc/hosts hostname IP":
   context => "/files/etc/hosts",
   changes => [
      "set \"*[canonical='$hostname']/ipaddr\" $ipaddress",
      ],
}
</pre>

Same resource fails to work under 0.25.4.  Apparently while the parser in 0.24 
broke the augeas command at the single-quote, 0.25.4 now maintains the escaped 
double quotes, and tacks the context onto the front of the path.  Which means 
you wind up sending a path like: 
/files/etc/hosts/\"*[canonical='$hostname']/ipaddr\" which is syntactically 
incorrect.

Is there no way to allow compatibility between the two releases at least for 
migration, without putting in a massive case expression based on puppetversion?



-- 
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