[augeas-devel] How to insert empty nodes in Augeas trees?

Mol, Xavier (SCC) xavier.mol at kit.edu
Tue Dec 22 09:06:31 UTC 2015


Hello Augeas experts,

is there a way to insert empty nodes in an Augeas tree? I've made a lens, that expects an empty line as last part (Util.empty), which works fine with existing files. However, when inserting a new node in the tree with that lens, the closing empty line is missing. Do I need to have a labelled node in the tree without value or children, that simply puts an empty line in the resulting string instead?

Thank you for your time,
Xavier.

****
Karlsruher Institute of Technology (KIT)
Steinbuch Centre for Computing (SCC)

B. Sc. Xavier Mol
GridKa Storage Administrator and Support Manager

Hermann-von-Helmholtz-Platz 1
Geb. 449
76344 Eggenstein-Leopoldshafen
Phone: +49 721 608 23041
Email: xavier.mol at kit.edu
www.kit.edu
KIT - University of the State of Baden-Württemberg and National Large-scale Research Center of the Helmholtz Association
"Since 2010, the KIT has been certified as a family-friendly university."
****

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6401 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/augeas-devel/attachments/20151222/7b151d4e/attachment.p7s>


More information about the augeas-devel mailing list