[augeas-devel] problems with Spacevars lens

Jiri Suchomel jsuchome at suse.cz
Wed Aug 10 13:20:27 UTC 2011


Dne St 10. srpna 2011 14:12:48 Jiri Suchomel napsal(a):
> Hi!
> 
> I'm trying to parse /etc/ldap.conf using ruby bindings. I do not want to
> parse other files, so this is my way to do it:
> 
> aug = Augeas::open(nil, "", Augeas::NO_MODL_AUTOLOAD)
> aug.transform(:lens => "Spacevars.lns", :incl => "/etc/ldap.conf")
> aug.load

OK, so it's not specific to ruby bindings, this is what I get with augtool:

augtool --noautoload
augtool> set /augeas/load/Spacevars/lens "Spacevars.lns"
augtool> set /augeas/load/Spacevars/incl "/etc/ldap.conf"
augtool> load
error: Lens not found
error: Can not find lens Spacevars.lns

spacevars.aug is correctly installed under 
/usr/share/libaugeas0/augeas/lenses/dist. Loading other lenses works.

Jiri
-- 
Jiri Suchomel

SUSE LINUX, s.r.o.                            e-mail: jsuchome at suse.cz
Lihovarská 1060/12                            tel: +420 284 028 960
190 00 Praha 9, Czech Republic                http://www.suse.cz




More information about the augeas-devel mailing list