[augeas-devel] Filter troubles

Raphaël Pinson raphael.pinson at camptocamp.com
Mon Apr 8 20:33:43 UTC 2013


Hi Damon,


What does `print /augeas//error` say in augtool?


Cheers

Raphaël


On Mon, Apr 8, 2013 at 9:20 PM, Damon Conway <
damon.conway at alchemysystems.com> wrote:

> Hi,
> I am writing a lens for awstats configuration files, and I've got it
> passing tests.  However, augtool doesn't show /etc/awstats as being
> available.
>
> Mon Apr 08 14:12 ~/git/github/augeas
> damon > augparse -I. tests/test_awstats.aug
> Mon Apr 08 14:12 ~/git/github/augeas
> damon > augparse -I. awstats.aug
> Mon Apr 08 14:12 ~/git/github/augeas
> damon > augtool -I. -n
> augtool> print /files/etc/a
> aliases/  apt/
> augtool> quit
>
> My code is here: https://github.com/**damonconway/augeas.git<https://github.com/damonconway/augeas.git>
>
> Here is the relevant piece:
>
> (* View: entry *)
> let entry = ( sp_sep /Include/ | simple_entry (simple_list) )
>
> (* Variable: filter *)
> let filter = incl "/etc/awstats/*"
>            . Util.stdexcl
>
> (* View: lns
> The awstats lens *)
> let lns = (empty | comment | entry)*
>
> let xfm = transform lns filter
>
>
>
> TIA,
> Damon
>
> ______________________________**_________________
> augeas-devel mailing list
> augeas-devel at redhat.com
> https://www.redhat.com/**mailman/listinfo/augeas-devel<https://www.redhat.com/mailman/listinfo/augeas-devel>
>



-- 
Raphaël Pinson
Administrateur Systèmes & Réseaux
Camptocamp France
Savoie Technolac
BP 352
48, avenue du Lac du Bourget
73372 Le Bourget du Lac, Cedex
www.camptocamp.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/augeas-devel/attachments/20130408/7e0c39db/attachment.htm>


More information about the augeas-devel mailing list