puppet-editfile icon indicating copy to clipboard operation
puppet-editfile copied to clipboard

Do not uncomment lines if possible

Open jrevillard opened this issue 14 years ago • 0 comments

Hi,

First of all congratulation for this module, very helpful!

I'm trying to manage sshd_config file with it and found a small issue: if you have something like this in your file:

ListenAddress ::

ListenAddress X.X.X.X

and if I do: editfile::config { 'sshd: ListenAddress ext': path => '/etc/ssh/sshd_config', entry => 'ListenAddress', ensure => '127.0.0.1', sep => ' ', }

I obtain: ListenAddress 127.0.0.1 ListenAddress 127.0.0.1

I would expect to obtain:

ListenAddress ::

ListenAddress 127.0.0.1

My patch do it.

Best, Jerome

jrevillard avatar Jan 12 '12 16:01 jrevillard