[augeas-devel] [Augeas] #141: Can't save /etc/sysconfig/network/ifcfg-* files

Augeas trac at fedorahosted.org
Wed Aug 31 19:28:38 UTC 2011


#141: Can't save /etc/sysconfig/network/ifcfg-* files
-----------------------+----------------------------------------------------
  Reporter:  gaferion  |       Owner:  fgiraldeau
      Type:  defect    |      Status:  assigned  
  Priority:  major     |   Milestone:  next      
 Component:  Augeas    |     Version:  0.7.0     
Resolution:            |    Keywords:            
-----------------------+----------------------------------------------------
Comment (by fgiraldeau):

 This kind of clash may occur in future too, so I think it's best to fix
 it.

 The question here is how to avoid clash between files and directory. One
 thing to note is that files and directory tree must exist prior to
 modification with augeas. We then
 could add a flag in the augeas tree for the note type: if it's a node
 internal to augeas, a file, a directory or a content node. That way, it
 would be possible to choose between two file filter. In a file filter, the
 last element is always a file, and the previous ones are always
 directories. That would require a small change to struct tree, with a new
 enum and few changes around, nothing fancy.

 Would it be a good solution? Is there corner case that it wouldn't handle?

-- 
Ticket URL: <https://fedorahosted.org/augeas/ticket/141#comment:6>
Augeas <http://augeas.net/>
a configuration API




More information about the augeas-devel mailing list