[augeas-devel] [Augeas] #300: Pam lens won't allow an argument to be set if there's a comment

Augeas trac at fedorahosted.org
Fri Sep 7 13:33:37 UTC 2012


#300: Pam lens won't allow an argument to be set if there's a comment
--------------------+---------------------
 Reporter:  tdb     |       Owner:  lutter
     Type:  defect  |      Status:  new
 Priority:  major   |   Milestone:  next
Component:  Augeas  |     Version:  0.8.0
 Keywords:          |  Blocked By:
 Blocking:          |
--------------------+---------------------
 I'm using Puppet (although I think this is an Augeas issue) to add an
 argument to a pam entry. There are two entries (in different pam files).
 The first works correctly, the second doesn't:

 {{{
 session optional pam_motd.so
 }}}
 {{{
 session optional pam_motd.so # [1]
 }}}

 I'm using the following Puppet code to add an argument:

 {{{
 augeas { "disableupdates":
   context => "/files/etc/pam.d/sshd",
   changes => [
     "set *[module = 'pam_motd.so']/argument 'noupdate'",
   ],
 }
 }}}

 When there's no comment and no argument, or when there's both a comment
 and an argument, it works as expected. When there's only a comment it
 fails.

 This looks like a problem with the lens? I'm not sure how to fix it
 though.

 Tim.

-- 
Ticket URL: <https://fedorahosted.org/augeas/ticket/300>
Augeas <http://augeas.net/>
a configuration API




More information about the augeas-devel mailing list