Issue #2133 has been reported by jab.

----------------------------------------
Bug #2133: augeas 0.4+ path expressions not working in 0.24.8
http://projects.reductivelabs.com/issues/2133

Author: jab
Status: Unreviewed
Priority: Normal
Assigned to: 
Category: 
Target version: 
Complexity: Unknown
Affected version: 0.24.8
Keywords: 


I'm trying to use the expanded path expressions added in augeas 0.4.0 (I'm 
using 0.4.1 from EPEL):
<pre>
  augeas { "pam_access.so":
        context => "/files/etc/pam.d/sshd",
        changes => [
            "ins 1000 before *[type='account'][module='pam_nologin.so']",
            "set 1000/type account",
            "set 1000/control required",
            "set 1000/module pam_access.so",
        ],
        onlyif  => "match 
*[type='account'][control='required'][module='pam_access.so'] size == 0",
  }
</pre>

It returns this error:
<pre>
Failed to retrieve current state of resource: Error sending command 'ins 1000 
before *[type=' with params ["account", "][module= pam_nologin.so ]"]/Command 
'ins 1000 before *[type=' is not supported
</pre>

I found that reverting the change made for #1835 fixed the problem.  It appears 
it's not expecting the quotes in these newer path expressions and misparses as 
a result.


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

Reply via email to