[augeas-devel] [Augeas] #108: modprobe lens: whitespaces inside attribute values
Augeas
trac at fedorahosted.org
Wed Feb 24 13:32:07 UTC 2010
#108: modprobe lens: whitespaces inside attribute values
-------------------------+--------------------------------------------------
Reporter: xdelaruelle | Owner: lutter
Type: defect | Status: new
Priority: major | Milestone: next
Component: Augeas | Version: 0.7.0
Keywords: |
-------------------------+--------------------------------------------------
Hello,
I would like to manage with Augeas a /etc/modprobe.d/foo.conf file that
contains an entry similar to:
{{{
options name attr1="val" attr2="val2 val3"
}}}
I use Augeas 0.7.0 on a CentOS 5 system and I get following parse error
with the above file:
{{{
# augtool
augtool> print /augeas//error
/augeas/files/etc/modprobe.d/foo.conf/error = "parse_failed"
/augeas/files/etc/modprobe.d/foo.conf/error/pos = "0"
/augeas/files/etc/modprobe.d/foo.conf/error/line = "1"
/augeas/files/etc/modprobe.d/foo.conf/error/char = "0"
/augeas/files/etc/modprobe.d/foo.conf/error/lens =
"/usr/share/augeas/lenses/dist/modprobe.aug:43.10-.32:"
/augeas/files/etc/modprobe.d/foo.conf/error/message = "Iterated lens
matched less than it should"
}}}
After a quick look at the modprobe lens, it seems that quotes are not
managed and whitespaces are only considered as separators: they cannot be
part of an attribute value.
It would be nice to add quote management to the lens to be able to use
whitespaces in attribute values :)
Regards,
Xavier
--
Ticket URL: <https://fedorahosted.org/augeas/ticket/108>
Augeas <http://augeas.net/>
a configuration API
More information about the augeas-devel
mailing list