I use augeas to manage XML on some machines. While creating new nodes, as well as setting up many attributes worked like a charm, I bite my nails by adding a simple attribute to the XML file. XML is as follows:
<?xml version="1.0"?> <Context> <WatchedResource></WatchedResource> </Context>
I'm just not trying to add allowLinking="true" to the root context of the node via
set /files/path/to/my/file.xml/Context/
Unfortunately, always with a mistake
/error = "put_failed" /error/path = "/files/path/to/my/file.xml/Context" /error/lens = "/usr/share/augeas/lenses/dist/xml.aug:134.10-.73:" /error/message = "Failed to match \n { /#attribute/ }?({ /#text/ β¦
I am using puppet openource 3.4.2 with augeas 1.0.0.
Any suggestion what am I doing wrong?
source share