<div dir="ltr">Hello Xavier,<div><br></div><div><br></div><div>I was going to say that was not possible, but I actually (to my great surprise) found a way to do it:</div><div><br></div><div><div>    augtool> touch /files/etc/fstab/01</div><div>    augtool> rename /files/etc/fstab/01 ""</div><div>    rename : /files/etc/fstab/01 to  1</div><div>    augtool> save</div><div>    Saved 1 file(s)</div></div><div><br></div><div>Just added an empty line at the end of /etc/fstab</div><div><br></div><div><br></div><div>Cheers,</div><div><br></div><div>Raphaël</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 22, 2015 at 10:06 AM, Mol, Xavier (SCC) <span dir="ltr"><<a href="mailto:xavier.mol@kit.edu" target="_blank">xavier.mol@kit.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Augeas experts,<br>
<br>
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?<br>
<br>
Thank you for your time,<br>
Xavier.<br>
<br>
****<br>
Karlsruher Institute of Technology (KIT)<br>
Steinbuch Centre for Computing (SCC)<br>
<br>
B. Sc. Xavier Mol<br>
GridKa Storage Administrator and Support Manager<br>
<br>
Hermann-von-Helmholtz-Platz 1<br>
Geb. 449<br>
76344 Eggenstein-Leopoldshafen<br>
Phone: <a href="tel:%2B49%20721%20608%2023041" value="+4972160823041">+49 721 608 23041</a><br>
Email: <a href="mailto:xavier.mol@kit.edu">xavier.mol@kit.edu</a><br>
<a href="http://www.kit.edu" rel="noreferrer" target="_blank">www.kit.edu</a><br>
KIT - University of the State of Baden-Württemberg and National Large-scale Research Center of the Helmholtz Association<br>
"Since 2010, the KIT has been certified as a family-friendly university."<br>
****<br>
<br>
<br>_______________________________________________<br>
augeas-devel mailing list<br>
<a href="mailto:augeas-devel@redhat.com">augeas-devel@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/augeas-devel" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/augeas-devel</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Raphaël Pinson<div>Infrastructure Developer & Training Leader</div><div>+33 458 482 013<div><br></div><div>Camptocamp France<br>
Savoie Technolac<br>
BP 352<br>
48, avenue du Lac du Bourget<br>
73372 Le Bourget du Lac, Cedex<br>
<a href="http://www.camptocamp.com" target="_blank">www.camptocamp.com</a><br>
</div></div></div></div></div></div>
</div>