Comment 5 for bug 1491406

Revision history for this message
Ryan Harper (raharper) wrote : Re: [Bug 1491406] Re: augeas-lenses-1.2.0 - NagiosCfg lens broken for /etc/nagios.cfg due to spaces

Dominic,

Thanks! That's exactly what I needed.

On Tue, Jun 7, 2016 at 2:19 AM, Dominic Cleal <email address hidden>
wrote:

> Ryan, changing an existing value will preserve the whitespace (something
> Augeas tries hard to do), so you'll probably need to add a new setting
> to observe the behaviour.
>
> You could delete the existing cfg_file entry and create a new one, e.g.
>
> augtool> rm /files/etc/nagios3/nagios.cfg/cfg_file
> augtool> set /files/etc/nagios3/nagios.cfg/cfg_file
> /etc/nagios3/commands.cfg.local
>
> or if Nagios supports any setting name then you could define something
> new:
>
> augtool> set /files/etc/nagios3/nagios.cfg/example test
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1491406
>
> Title:
> augeas-lenses-1.2.0 - NagiosCfg lens broken for /etc/nagios.cfg due to
> spaces
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/augeas/+bug/1491406/+subscriptions
>