Thank you for your bug report, i've already filed it in upstream bug
tracker: https://fedorahosted.org/augeas/ticket/114

On Thu, 11 Mar 2010, martin f krafft wrote:

> Package: augeas-lenses
> Version: 0.7.0-1
> Severity: wishlist
> File: /usr/share/augeas/lenses/dist/shellvars.aug
> 
> 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,
> 
> -- System Information:
> Debian Release: squeeze/sid
> Architecture: i386 (i686)
> 
> Kernel: Linux 2.6.33-2-686 (SMP w/1 CPU core)
> Locale: LANG=en_GB, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> 
> augeas-lenses depends on no packages.
> 
> augeas-lenses recommends no packages.
> 
> Versions of packages augeas-lenses suggests:
> ii  libaugeas0                    0.7.0-1    The augeas configuration editing 
> l
> 
> -- no debconf information
> 
> 
> -- 
>  .''`.   martin f. krafft <madd...@d.o>      Related projects:
> : :'  :  proud Debian developer               http://debiansystem.info
> `. `'`   http://people.debian.org/~madduck    http://vcs-pkg.org
>   `-  Debian - when you have better things to do than fixing systems



-- 
Nicolas Valcárcel
Security Engineer
Custom Engineering Solutions Group
Canonical OEM Services
Mobile: +511 994 293 200
Key fingerprint = 5C4D 0C85 D9C0 98FE 11F9  DD12 524E C3CD EF58 4970
gpg --keyserver keyserver.ubuntu.com --recv-keys 654597FE

Attachment: signature.asc
Description: Digital signature

Reply via email to