[augeas-devel] [Augeas] #114: shellvars: ability to add comment to value
Augeas
trac at fedorahosted.org
Thu Mar 11 13:29:50 UTC 2010
#114: shellvars: ability to add comment to value
--------------------+-------------------------------------------------------
Reporter: nxvl | Owner: lutter
Type: defect | Status: new
Priority: major | Milestone: next
Component: Augeas | Version: 0.7.0
Keywords: |
--------------------+-------------------------------------------------------
From BTS #573411 [0]:
"I am using augeas with puppet. I would like to add to each value
I control with pupet a short comment along the lines of "MANAGED BY
PUPPET". Unfortunately, augeas very strongly enforces a single value
rule, such that setting e.g. /files/etc/default/rcS/TMPTIME to any
of the following causes the save to fail:
7 # MANAGED BY PUPPET
"7 # MANAGED BY PUPPET"
The only way to make it work is with either of the following two:
"'7 # MANAGED BY PUPPET'"
7#MANAGED_BY_PUPPET
But both yield the wrong value: due to the quotes in the first, the
comment will be included, and due to the missing space before the #,
the comment is also considered part of the value.
I appreciate the stringent syntax checking, but I think that
"7 # MANAGED BY PUPPET"
should be an acceptable value, because ' #' denotes a comment, which
I think augeas could tolerate/allow.
Thanks,"
0. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=573411
--
Ticket URL: <https://fedorahosted.org/augeas/ticket/114>
Augeas <http://augeas.net/>
a configuration API
More information about the augeas-devel
mailing list