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

pg_hba should validate that target is an absolute path

Open mcanevet opened this issue 11 years ago • 0 comments

If you use pg_hba without specifying a target, it fails with:

Could not evaluate: private method `chomp' called for nil:NilClass

Because of:

def self.file(resource)
    ...
    file = resource[:target]
    file.chomp("/")
end

in pg_hba augeas provider.

I think it should be validated in the type to fail properly.

mcanevet avatar Jun 05 '13 06:06 mcanevet