Issue #2141 has been updated by [email protected].
Please be aware there are some subtle changes in the type which may cause issues for you. These are: 1) There can be no ' or " characters around path elements. 2) The context is now only prepended to relative paths. So, if a path is specified as /foo/bar the context will not be appended. It will only be appended if it is foo/bar 3) The syntax for array matching in the onlyif is now eq or noteq. It was == before. 4) The get and set commnands used to concatenate all items at the end of a string so "set path to some value" would be interpreted as "set" "path" "to some value". This is no longer supported. The caller must put ' or " around the "to some value" for it to work" ---------------------------------------- Bug #2141: Augeas resource bug with single and double quotes http://projects.reductivelabs.com/issues/2141 Author: Djelibeybi Status: Ready for Testing Priority: Urgent Assigned to: [email protected] Category: Target version: Complexity: Unknown Affected version: 0.24.8 Keywords: In Puppet 0.24.7, the following Augeas resource worked fine: <pre> augeas { "pam_remove_console": context => "/files/etc/pam.d/", changes => "rm */*[module='pam_console.so']", onlyif => "match */*[module='pam_console.so'] size > 0", } </pre> I've upgraded to Puppet 0.24.8 and I'm now getting the following error: <pre> (//Node[basenode]/pam/Augeas[pam_remove_console]) Failed to retrieve current state of resource: Error sending command 'rm */*[module=' with params ["pam_console.so", "]"]/Command 'rm */*[module=' is not supported </pre> Looks like Puppet is breaking on the ' even though I opened with " -- and escaping the ' doesn't help. -- 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://reductivelabs.com/redmine/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 -~----------~----~----~----~------~----~------~--~---
