If I have a .pgpass file with multiple lines, it seems only the first line is used.
I think this is due to the [0] in
|
pgpass = Hash[%i[hostname port database user password].zip(File.readlines(config[:pgpass])[0].strip.split(':'))] |
(but I may be wrong there).
Given the postgres docs on the pgpass file format, I expected this to work the same way.
If I have a .pgpass file with multiple lines, it seems only the first line is used.
I think this is due to the
[0]insensu-plugins-postgres/lib/sensu-plugins-postgres/pgpass.rb
Line 4 in 1653c8b
Given the postgres docs on the pgpass file format, I expected this to work the same way.