augtool does not properly parse /etc/cups/*.conf

Bug #1290334 reported by Hadmut Danisch
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
augeas (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Hi,

augtool has lenses intended to parse /etc/cups/*.conf, which do not work as expected. Do a

augtool print /files/etc/cups/cupsd.conf

It presents directives as

/files/etc/cups/cupsd.conf/directive[4] = "Listen"
/files/etc/cups/cupsd.conf/directive[4]/arg = "localhost:631"

which makes it difficult to automatically change data. Usually augtool should give something like .../cupsd.conf/Listen[0]...

regards

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: augeas-tools 1.2.0-0ubuntu1
ProcVersionSignature: Ubuntu 3.13.0-16.36-generic 3.13.5
Uname: Linux 3.13.0-16-generic x86_64
ApportVersion: 2.13.3-0ubuntu1
Architecture: amd64
CurrentDesktop: XFCE
Date: Mon Mar 10 13:07:21 2014
InstallationDate: Installed on 2013-04-29 (314 days ago)
InstallationMedia: Ubuntu 12.04.2 LTS "Precise Pangolin" - Release amd64 (20130214)
SourcePackage: augeas
UpgradeStatus: Upgraded to trusty on 2014-03-05 (5 days ago)

Revision history for this message
Hadmut Danisch (hadmut) wrote :
Revision history for this message
Raphaël Pinson (raphink) wrote :

This tree is the intended behavior. It is the same as the Httpd lens for Apache configuration files.

What exactly does that prevent you from modifying?

Revision history for this message
Robie Basak (racb) wrote :

Thank you for your report.

Since this is the intended behaviour, I don't think it qualifies as a bug in the augeas package in Ubuntu. Augeas upstream would be a better venue for discussing this sort of change - particularly since changing the tree would break everyone else relying on the existing behaviour.

Since this is not a bug in Ubuntu, I'm marking this bug as Invalid in Ubuntu, but feel free to raise the issue elsewhere, or even to continue to discuss it here.

Changed in augeas (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.