[augeas-devel] iscsid - lense
Royee Tager
royeectu at gmail.com
Mon Oct 27 15:05:20 UTC 2014
Hi,
I need a lense for /etc/iscsi/iscsid.conf
I have found the following (which doesn't work for some reason).
[root at lg600 dist]# cat iscsid.aug
module Iscsid =
autoload xfm
let filter = incl "/etc/iscsi/iscsid.conf"
let eol = Util.eol
let indent = Util.indent
let key_re = /[][A-Za-z0-9_.-]+/
let eq = del /[ \t]*=[ \t]*/ " = "
let value_re = /[^ \t\n](.*[^ \t\n])?/
let comment = [ indent . label "#comment" . del /[#;][ \t]*/ "# "
. store /([^ \t\n].*[^ \t\n]|[^ \t\n])/ . eol ]
let empty = Util.empty
let kv = [ indent . key key_re . eq . store value_re . eol ]
[root at lg600 dist]#
When i run augparse I get the following error message:
[root at lg600 dist]# augparse iscsid.aug
Syntax error in lens definition
iscsid.aug:1.0-.6:Undefined transform in autoload xfm
[root at lg600 dist]#
What is the reason?
Where can I find a working lense for iscsid.conf?
Thanks,
Royee Tager
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/augeas-devel/attachments/20141027/af54f35f/attachment.htm>
More information about the augeas-devel
mailing list