Issue #3652 has been updated by James Turnbull.

Status changed from Unreviewed to Needs design decision
Assigned to set to Bryan Kearney


----------------------------------------
Bug #3652: Quoting incompatible between 0.24 and 0.25
http://projects.puppetlabs.com/issues/3652

Author: Alan Sparks
Status: Needs design decision
Priority: Normal
Assigned to: Bryan Kearney
Category: 
Target version: 
Affected 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:

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

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 mailtains the escaped 
double quotes, and tacks the context onto the fron 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